RECORD_METADATA | ID | FIRST_NAME | LAST_NAME | _STREAMKAP_SOURCE_TS_MS | _STREAMKAP_TS_MS | __DELETED | _STREAMKAP_OFFSET |
---|---|---|---|---|---|---|---|
1302 | Paul | Smith | 1727770177000 | 1727770177618 | FALSE | 309707 |
ID
: also the source table’s primary key.FIRST_NAME
LAST_NAME
RECORD_METADATA
: Metadata such as the origin topic, partition, offset, event type and more. It can be useful for debugging purposes._STREAMKAP_SOURCE_TS_MS
: Timestamp in milliseconds (UTC) for when the event occurred in the source database._STREAMKAP_TS_MS
: Timestamp in milliseconds (UTC) for when Streamkap received the event.__DELETED
: Indicates whether this event/row (by its primary key) has been deleted in the source database._STREAMKAP_OFFSET
: This is an offset value in relation to the events we process. It can be useful for debugging purposes.
Snowflake
Task & Merge Statement
SQL
Dynamic Tables
Streamkap supports the auto creation and maintenance of Snowflake Dynamic Tables for this final view but the logic underneath is as followsSQL
DBT
SQL Example
SQL
{{ this }}
declaration for DBT, since it can use post DBT hook to delete the __deleted
columns that are true.
Python Example
This is an example approach for generating the DBT incremental models.Python