SynapCores Community Edition v2.4.0-ce
Community Edition · free · seamless upgrade from v2.3.x
SynapCores v2.4.0-ce is out. The headline: COPY ... TO LAKE — materialize the
result of any SELECT (or WITH) as plain, partitioned Parquet in your own object
store, in one SQL statement. No Airflow DAG, no Spark job, no separate export service.
The query is the pipeline.
The job this removes
"Take this transformed slice of the database and land it in S3 as Parquet, partitioned
by region, so the lakehouse and everything downstream can read it" is a task most teams
solve with a second system — an orchestrator, a warehouse UNLOAD, or hand-rolled
Python. That system has its own schedule, its own credentials, its own failure modes,
and its own copy of your schema to keep in sync.
v2.4.0-ce makes it a statement:
COPY (SELECT id, metro, amount FROM permits WHERE amount > 0)
TO LAKE 'matches/'
WITH (CONNECTION = 'werkor_lake', PARTITION_BY = (metro),
MODE = 'overwrite_partitions', COMPRESSION = 'zstd');
It streams the query straight to the writer — no REST response cap — and returns
job_id, run_id, rows_written, files_written, bytes_written and
partitions_touched. Partition columns become Hive directories (metro=nyc/…) and are
dropped from the data files, so the output is standard foreign Parquet any engine can
read. Register it back with CREATE EXTERNAL TABLE and query it in place:
CREATE EXTERNAL TABLE permit_matches STORED AS PARQUET
LOCATION 'matches/' PARTITIONED BY (metro TEXT)
WITH (CONNECTION = 'werkor_lake');
SELECT COUNT(*) FROM permit_matches WHERE metro = 'nyc';
Why it's safe to point at production storage
COPY TO LAKE writes real data to real buckets, so it is gated, not permissive:
- A fresh, full-data-write principal — not an agent's operating privileges, not a read-only or table-scoped key.
- An explicit destination
write_allowlistgrant. An empty allowlist — including on destinations upgraded from older versions — deniesCOPYentirely. Absolute paths, arbitrary S3 URLs, and managed-table ancestry are refused. overwrite_partitionsreplaces only the partitions the query actually produced — an empty result deletes nothing.appendonly adds files.- Durable publication. Complete files are staged outside reader visibility, then
published; an interrupted run is reconciled from a recovery journal before the next
COPY. Inspect or cancel in flight via/v1/lake/copy/jobsand/v1/lake/runs.
Exact decimals and supported temporal types stay typed in the Parquet; writers emit row-group statistics, page indexes and high-cardinality bloom filters, so downstream partition pruning and predicate pushdown just work.
Honest limits. This is a one-shot export, not a writable external table or a
continuous materialized view. Object-store listing is not a multi-file transaction —
concurrent readers can briefly see a mix while new files replace old — and multi-partition
publication is not a single table-wide transaction. Derived column-alias lists
(... AS t(a, b)) over a non-VALUES relation aren't supported yet; COPY fails closed
rather than guessing.