Tables
System columns reference
Every system column Artie adds to a destination table, with its name, type, meaning and the setting that turns it on.
System columns start with __artie_, unless you rename __artie_updated_at. Each setting applies to every table in the pipeline.
Column settings
Each row lists a system column, the option that adds it, and its default on a new pipeline.
| Column | New pipeline: Delivery | Existing pipeline: Advanced settings | Default |
|---|---|---|---|
__artie_updated_at | Extra columns > Updated at | Add ‘Artie updated at’ column | On |
__artie_db_updated_at | Extra columns > Source updated at | Add ‘database updated at’ column | Off |
__artie_operation | Extra columns > Operation | Add ‘Artie operation’ column | Off |
__artie_full_source_table_name | Extra columns > Source table | Add ‘full source table name’ column | Off |
__artie_source_metadata | Extra columns > Source metadata | Add ‘source metadata’ column | Off |
__artie_delete | Deletes > Keep and mark deleted | Soft-delete rows | Off |
For a new pipeline, Delivery is a section of the Review and deploy step.
For an existing pipeline, Advanced settings is on the pipeline’s Destination tab. Soft-delete rows is under General, and the other five settings are under Additional data.
Artie operation column
__artie_operation is a string column. In a normal table, it holds the operation that most recently produced the row.
| Value | Meaning |
|---|---|
r | Backfill |
c | Create |
u | Update |
d | Delete |
History mode tables always include __artie_operation. There it holds the operation that produced each history record.
Redis destinations with Write mode set to Stream (change log per table) always include __artie_operation, whatever the setting says. With State (current row per key), it follows the setting.
Timestamp columns
Both columns are timezone-aware timestamps. The types shown are Snowflake’s.
| Column | Data type | Description |
|---|---|---|
__artie_updated_at | TIMESTAMP_TZ | The timestamp of when Artie processed the change. |
__artie_db_updated_at | TIMESTAMP_TZ | The timestamp of when the change occurred in your source database. |
History mode tables always include __artie_db_updated_at. __artie_updated_at follows its setting in both modes.
Rename the Artie updated at column
On an existing pipeline, enter a Column name (optional) under Add ‘Artie updated at’ column. Artie saves the name in lowercase. Leave it blank to keep __artie_updated_at.
The field doesn’t appear for Kafka or ClickHouse destinations, or in the new pipeline setup flow. To change the name on a running pipeline, pause it first. Artie doesn’t rename the column in tables it already created, so rename it in your destination tables before you resume.
In Terraform, set artie_updated_at_column_name on artie_pipeline, which needs Terraform provider v2.3.62 or later. It also works when you create the pipeline. Set it to "" to go back to __artie_updated_at.
Soft delete columns
With soft deletes on, Artie keeps a row that was deleted in the source and flags it. The dashboard has no soft delete setting for S3, Google Cloud Storage, Delta Lake, ClickHouse or Kafka destinations, and the API refuses to turn it on for them.
| Column | Data type | Description |
|---|---|---|
__artie_delete | BOOLEAN | true if the row was deleted in the source database. |
__artie_only_set_delete | BOOLEAN | S3 and GCS destinations only. true if the row was deleted and the event contains no other column values to update, only the delete flag itself. |
S3 and GCS files
S3 and GCS destinations write both columns to every Parquet file of change data capture (CDC) events, with or without soft deletes.
Backfill files leave out __artie_only_set_delete. They include __artie_delete only when soft deletes are on.
Every other destination uses __artie_only_set_delete internally and never stores it.
Difference between __artie_delete and __artie_only_set_delete
Both columns indicate a deletion. __artie_delete is true whenever a row is deleted. __artie_only_set_delete is true only when the delete event carries no other column values to write.
For example, a row is updated and then deleted within the same flush cycle. The event contains both the updated values and the deletion, so __artie_delete = true and __artie_only_set_delete = false.
Static columns
A static column adds the same name and value to every row Artie writes to your destination tables. Use one to tag rows with metadata the source doesn’t hold, such as an environment label, a data source identifier or a tenant ID.
Artie stores the value as a string, under the name you enter with no __artie_ prefix. A static column can’t share a name with a source column. If it does, Artie returns this error:
static column "NAME" collides with event dataNAME is the static column’s name.
For a new pipeline, open Extra columns in the Delivery section of the Review and deploy step. Expand Static columns, then select Add a static column.
To add one to an existing pipeline:
- On the pipeline’s Destination tab, find Advanced settings.
- Under Additional data, expand Static columns.
- Select Add a static column.
- Enter a Column name and a Value.
Source metadata columns
These columns describe where each row came from and the source event that produced it. The types shown are Snowflake’s.
| Column | Data type | Description |
|---|---|---|
__artie_full_source_table_name | STRING | The fully qualified source table name in the format dbName.schemaName.tableName. |
__artie_source_metadata | VARIANT | A JSON object of source metadata from the change event. |
Full source table name
A source with no schema or no database name leaves that part out of __artie_full_source_table_name. MongoDB and API sources store the table name alone.
A second option adds the column to the destination table’s primary key. It appears only while the full source table name column is on.
For a new pipeline, select Add it to the primary key under Source table, before data lands. For an existing pipeline, select Include ‘full source table name’ column as part of primary key.
Source metadata fields
The fields in __artie_source_metadata depend on the source. They come from change events. Rows written by a backfill carry fewer fields or none.
| Source | Fields |
|---|---|
| Relational databases | connector, ts_ms, db, table, and schema when the source has one |
| PostgreSQL, in addition | lsn, the log sequence number (LSN) |
| MySQL, in addition | file, pos, gtid |
| SQL Server with capture instances, in addition | lsn |
| SQL Server with transaction log backups, in addition | lsn, transaction_id |
| MongoDB | connector, ts_ms, db, collection |
| API | An empty object, {} |
Every listed field is present, but some can be empty. Artie leaves connector empty for MongoDB and db empty for Oracle.
Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.