Skip to content
Partner Developer Portal

Definition

Since the ETL is expected to run in batches due to large amount of data processing involved, this table is used to organise and manage groups of data extract runs.

This table should be used to evaluate:

  • Row counts difference from source to target in expected_row_count and actual_row_count columns
  • Number of times an extract attempts to rerun in retries column. Max retries are set to 3 before the ETL is marked as Failed
Scenario Encountered Info in the logging tables
Need information on how efficient is the data load process Check for data in ‘extract_run_batches’ for a particular ETL run ID & notice how an ETL is optimised to run in multiple batches
Need information on data completeness Check for data in ‘extract_run_batches’ for a particular ETL run ID & notice the values in ‘expected_row_count’ and ‘actual_row_count’ columns for each batch to evaluate the difference
Need information on which tables have been processed by a particular ETL run Check for data in ‘extract_run_tables’ table for a particular extract run ID & make a note of status of each of the tables/organisation combination
SELECT
status_id,
COUNT(*) AS batch_count
FROM internal.extract_run_batches
GROUP BY status_id
ORDER BY status_id;
SELECT
run_table_id,
expected_row_count,
actual_row_count,
retries,
status_id
FROM internal.extract_run_batches
ORDER BY run_table_id, id;