Definition
Information
Section titled “Information”This table captures information about execution of the ETL process on a particular date/time with a unique ID associated to each run. The status of the extract run is related to the statuses as mentioned above.
This table should be used to:
- Monitor the status of the extract after it has initiated
- Evaluate the time it’s taken to run the extract
Scenarios
Section titled “Scenarios”| Scenario Encountered | Info in the logging tables |
|---|---|
| Need information on the status of the ETL before I start verifying the data in EMISInsights DB | Check for entry in ‘extract_run’ table. There should be a unique entry for the ETL with the date time stamp & the ETL status. To check for ETL status ID, check ‘internal.status’ table |
| Need information on time it took for ETL to run | Check for entry in ‘extract_run’ table. Make a note of start & end date time for a particular ETL run |
Examples
Section titled “Examples”Recent extract runs
Section titled “Recent extract runs”SELECT id, start_datetime, end_datetime, status_idFROM internal.extract_runORDER BY start_datetime DESC;Extract run counts by status
Section titled “Extract run counts by status”SELECT status_id, COUNT(*) AS run_countFROM internal.extract_runGROUP BY status_idORDER BY status_id;