Using Metadata Columns
Metadata columns enable several important patterns:- Delete handling: Use the
__DELETEDcolumn to identify rows deleted at the source. See Delete Handling for configuration options and query patterns. - Deduplication: When using insert/append mode, use
_STREAMKAP_TS_MSand_STREAMKAP_OFFSETto build deduplicated final-state tables. See Creating Final State Tables for examples with Snowflake Dynamic Tables, Tasks, and dbt. - Debugging: Use
_STREAMKAP_SOURCE_TS_MSto determine when events occurred at the source, and_STREAMKAP_TS_MSto determine when Streamkap processed them. The difference indicates pipeline latency.