Skip to content

Commit 3b8748b

Browse files
authored
Merge pull request #742 from elementary-data/fix-no-timestamp-event-freshness
fixed no timestamp event freshness query
2 parents 0538a9f + 9d16f3c commit 3b8748b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-warehouse.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ jobs:
7474
- name: Start Postgres
7575
if: inputs.warehouse-type == 'postgres'
7676
working-directory: ${{ env.TESTS_DIR }}
77-
run: docker-compose up -d postgres
77+
run: docker compose up -d postgres
7878

7979
- name: Start Trino
8080
if: inputs.warehouse-type == 'trino'
8181
working-directory: ${{ env.TESTS_DIR }}
82-
run: docker-compose -f docker-compose-trino.yml up -d
82+
run: docker compose -f docker-compose-trino.yml up -d
8383

8484
- name: Setup Python
8585
uses: actions/setup-python@v4

macros/edr/data_monitoring/monitors_query/table_monitoring_query.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@
299299
group by 1,2
300300
{% endmacro %}
301301

302-
{% macro get_no_timestamp_event_freshness_query(monitored_table, metric_properties, full_table_name_str) %}
302+
{% macro get_no_timestamp_event_freshness_query(metric, metric_properties) %}
303303
select
304304
{{ elementary.const_as_string(metric.name) }} as metric_name,
305305
{{ elementary.const_as_string("event_freshness") }} as metric_type,
306306
{{ elementary.timediff('second', elementary.edr_cast_as_timestamp("max({})".format(metric_properties.event_timestamp_column)), elementary.edr_quote(elementary.get_run_started_at())) }} as metric_value
307-
from {{ monitored_table }}
307+
from monitored_table
308308
{% endmacro %}

0 commit comments

Comments
 (0)