Using Artie
Schema evolution
Artie creates destination tables, adds new columns, and can drop deleted columns, so your destination schema follows your source.
Schema changes Artie applies
Artie applies these source schema changes while it replicates.
| Source change | What Artie does in the destination |
|---|---|
| A table has no destination table yet | Creates the table |
| A column is added | Adds the column |
| A column is dropped | Keeps the column, unless Drop deleted columns is on |
Artie detects each column’s data type from your source schema and values. For the type mapping, see Artie’s typing library.
How do I drop deleted columns?
Artie keeps a destination column after its source column is dropped. Dropping it is an opt-in pipeline setting.
For a new pipeline, go to the Review and deploy step and, under Delivery, set Dropped columns to Drop from destination. For an existing pipeline, open the Destination tab on the pipeline page, expand Advanced settings, and turn on Drop deleted columns.
S3, Google Cloud Storage, Delta Lake, Redis and Kafka destinations don’t have this setting.
Advanced settings
General
Drop nickname at the source to see what the destination does.
With the setting on, Artie waits before it drops a column:
- The first batch of changes without the column marks it for removal.
- Artie keeps the column for at least 4 hours.
- The first batch after those 4 hours that still omits the column drops it.
A batch that holds only deletes doesn’t count, because a delete event can carry only primary key values.
Column exclusion and inclusion
Two table settings control which source columns Artie adds to the destination. Set them in a table’s Advanced settings on the pipeline page. A table can’t use both at once.
To choose between them, see Column inclusion and exclusion.
Column exclusion
Turn on Exclude certain columns to keep the columns you select out of the destination. New source columns still replicate.
Use it for sensitive columns such as PII or passwords, and for large or unused columns that add storage cost.
Column inclusion
Turn on Include certain columns to replicate only the columns you select. Artie doesn’t add a new source column until you add it to the list.
Automatic schema changes
A workspace admin can turn on Automatically apply supported schema changes in Settings > General, under Table change handling. A separate reconciliation job then compares each eligible source table with its existing destination table and applies supported differences.
When a run applies changes, Artie emails them. To opt out, turn off Automatic schema change emails in Settings > My settings.
Supported sources and destinations
The job runs for sources with authoritative column schemas:
- PostgreSQL
- CockroachDB
- MySQL
- PlanetScale
- Microsoft SQL Server
- Oracle
- Amazon Keyspaces (Cassandra)
The destination must store column schemas, so the job skips pipelines that write to S3, GCS, Delta Lake (S3), Kafka or Redis.
Inside an eligible pipeline, the job skips a table in these cases:
- The table isn’t streaming.
- The destination table doesn’t exist yet.
- The table uses dynamic tables.
For Snowflake destinations, the daily run also creates the destination table of a streaming table that has none. A table with no rows to write is one example. It leaves some tables to the pipeline, for example tables that use dynamic tables, soft partitioning, document flattening or column compression.
When does the job run?
Artie schedules the job daily between 7:00 and 8:00 AM Pacific Time. It also queues reconciliation after an eligible pipeline redeploys, but not after a pipeline’s first deployment.
Reconciliation runs asynchronously and doesn’t decide whether a deployment succeeds.
Every trigger needs a running pipeline that Artie hasn’t locked. A redeploy also skips reconciliation while the pipeline’s data plane is locked.
Each completed run starts a two-hour cooldown for that pipeline. A scheduled check or redeploy inside the cooldown doesn’t start another reconciliation.
Run a check on demand
Use the Dashboard API to request reconciliation before the next scheduled run.
POST /company/automatic-schema-changes requests checks for every eligible running pipeline in the authenticated company. An environment-scoped API key only includes pipelines in that environment. The request returns 403 when the company setting is off.
POST /pipelines/{uuid}/automatic-schema-changes requests a check for one pipeline. It returns 409 when the company setting is off, or the pipeline isn’t running or is locked.
Both requests return 202 Accepted once Artie queues the work or folds it into a check that’s already queued. They don’t wait for reconciliation to finish.
The two-hour cooldown applies to both requests. To bypass it for one pipeline, add forceRefresh=true to the pipeline request:
POST /pipelines/PIPELINE_UUID/automatic-schema-changes?forceRefresh=truePIPELINE_UUID is the UUID of the pipeline to check.
Source and destination support, column inclusion and exclusion, and Drop deleted columns apply to on-demand checks too.
Changes the job applies
By default, the job only adds columns: source columns that are missing from an existing destination table. It doesn’t rename columns or change the type of an existing destination column. Column inclusion and exclusion still decide which source columns it adds.
With Drop deleted columns on, the job also drops a destination column once it’s gone from the source table’s schema. This drop skips the four-hour wait described in How do I drop deleted columns?
The job never drops these columns:
- System columns (
__artie_*) - Static columns
- Source columns you excluded or left out of an inclusion list
- Columns of a table that replicates only to its history table
Related
Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.