Definition
Information
Section titled “Information”This table captures information about last run state of a particular table for a particular organisation. This is so that we can identify which table needs bulking and which needs incremental data load only.
This table can be used when you want to bulk-load data or extract only incremental rows in the next ETL run
Scenarios
Section titled “Scenarios”| Scenario Encountered | Info in the logging tables |
|---|---|
| Customer wishes to check when a particular table was last bulked to be aware of what’s expected on the next data delivery for that table | The last updated date time column for each table against a particular organisation shows information about date time it was last updated. This date time can be compared to the last ETL run data time to be informed about whether the next ETL run would bulk the data or just process incrementals on this table |
Examples
Section titled “Examples”Tables marked for backfill
Section titled “Tables marked for backfill”SELECT table_name, organisation, last_updated_datetime, is_okFROM internal.extract_table_stateWHERE is_ok = FALSEORDER BY last_updated_datetime;Last update by table and organisation
Section titled “Last update by table and organisation”SELECT table_name, organisation, last_updated_datetime, upper_boundFROM internal.extract_table_stateORDER BY last_updated_datetime DESC;