Definition
Information
Section titled “Information”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
Scenarios
Section titled “Scenarios”| 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 |
Examples
Section titled “Examples”Batch counts by status
Section titled “Batch counts by status”SELECT status_id, COUNT(*) AS batch_countFROM internal.extract_run_batchesGROUP BY status_idORDER BY status_id;Compare batch row counts
Section titled “Compare batch row counts”SELECT run_table_id, expected_row_count, actual_row_count, retries, status_idFROM internal.extract_run_batchesORDER BY run_table_id, id;