Ilya Michlin
01/28/2024, 8:53 AMfreshness_anomalies - Freshness warning and not sure why. The latest entry column PUBLISHED_AT = 2024-01-27 02:29:46.755000000 in MY_SCHEMA.MY_TABLE. The Elementary tests were executed at 2024-01-27T02:43:49Z using the command test --select source:MY_SCHEMA
This is the schema.yml file:
sources:
- name: MY_SCHEMA
schema: MY_SCHEMA
tables:
- name: MY_TABLE
meta:
elementary:
timestamp_column: "PUBLISHED_AT"
tests:
- elementary.freshness_anomalies:
config:
severity: warn
detection_delay:
period: hour
count: 10
The warning is sent 2024-01-27 044954:
Test: freshness_anomalies - Freshness
Status: warn
Time: 2024-01-27 02:45:12
last update was at 2024-01-25 09:54:25.503, 0.06 hours ago. usually the table is updated within 0.16 hours.
When I look into the data, I see evenly distributed data every few seconds.
Any idea what can cause this?Daniel Pollak
01/28/2024, 11:12 AMIlya Michlin
01/28/2024, 3:10 PMPUBLISHED_AT to the latest event. So practically it computes one day every day.
There is an Airflow DAG in which the 1st task computes and inserts the new data. The 2nd task runs the tests using the command mentioned above.
I do need the daily time buckets so that is why I did not changed it.Daniel Pollak
01/28/2024, 3:14 PMPUBLISHED_AT values from the last two weeks from this table ?Ilya Michlin
01/28/2024, 3:23 PMPUBLISHED_AT are evenly distrebuted.Daniel Pollak
01/28/2024, 3:29 PManomaly_direction: spikeIlya Michlin
01/28/2024, 3:47 PMDaniel Pollak
01/28/2024, 3:51 PMIlya Michlin
01/28/2024, 3:56 PManomaly_direction is not part of configurations (it is just stated as a default).Daniel Pollak
01/28/2024, 4:03 PManomaly_direction: spike and not dropIlya Michlin
01/28/2024, 4:09 PMDaniel Pollak
01/28/2024, 4:16 PMselect * from
<elementary_schema>.data_monitoring_metrics
where lower(full_table_name) like '%<table_name>%'
and updated_at > '2024-01-01'
Replace <elementary_schema> with our schema and <table_name> with the table name we're trying to understand.
The result doesn't contain any contents of the table besides information about its updatesIlya Michlin
01/28/2024, 4:51 PMDaniel Pollak
01/29/2024, 7:20 AMIlya Michlin
02/01/2024, 7:16 AManomaly_direction: spike and did not get the warnings since then. I think this is what was missing.
Thanks for the help! 👑