airbyte primary key identify each tables sync time...
# ask-ai
n
airbyte primary key identify each tables sync time how to get
k
In Airbyte, the primary key is used to uniquely identify each record within a table, which is essential for deduplication in certain sync modes (like Incremental Deduped History). However, the primary key itself does not directly identify the sync time. To determine when each record was synced, Airbyte adds a special column called
_airbyte_emitted_at
to the raw tables in the destination. This column records the timestamp when Airbyte sent the record to the destination. You can query this field to see the sync time for each record. For example:
Copy code
sql SELECT _airbyte_ab_id, _airbyte_data, _airbyte_emitted_at FROM _airbyte_raw_table_one;
This will return each record's unique Airbyte ID, the data, and the time it was emitted (synced) to the destination. The
_airbyte_emitted_at
field is the best way to identify the sync time for each record in Airbyte's raw tables, not the primary key itself. The primary key is used for deduplication and record identification, while
_airbyte_emitted_at
tracks the sync time for each row [Explore Airbyte’s incremental data synchronization](https://airbyte.com/tutorials/incremental-data-synchronization#step-7). If you want to track sync times for deduplicated or normalized tables, you may need to ensure that the
_airbyte_emitted_at
field is carried through your transformations or normalization process.