Skip to content
Partner Developer Portal

Definition

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

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
SELECT
table_name,
organisation,
last_updated_datetime,
is_ok
FROM internal.extract_table_state
WHERE is_ok = FALSE
ORDER BY last_updated_datetime;
SELECT
table_name,
organisation,
last_updated_datetime,
upper_bound
FROM internal.extract_table_state
ORDER BY last_updated_datetime DESC;