Skip to content

Commit 4f4603e

Browse files
committed
use edr_datetime_to_sql in a couple other places
1 parent 83489c2 commit 4f4603e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

macros/edr/data_monitoring/data_monitors_configuration/get_buckets_configuration.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
{% macro get_metric_buckets_min_and_max(model_relation, backfill_days, days_back, detection_delay=none, metric_names=none, column_name=none, metric_properties=none, unit_test=false, unit_test_relation=none) %}
2424

2525
{%- set detection_end = elementary.get_detection_end(detection_delay) %}
26-
{%- set detection_end_expr = elementary.edr_cast_as_timestamp(elementary.edr_quote(detection_end)) %}
26+
{%- set detection_end_expr = elementary.edr_cast_as_timestamp(elementary.edr_datetime_to_sql(detection_end)) %}
2727
{%- set trunc_min_bucket_start_expr = elementary.get_trunc_min_bucket_start_expr(detection_end, metric_properties, days_back) %}
28-
{%- set backfill_bucket_start = elementary.edr_cast_as_timestamp(elementary.edr_quote(elementary.get_backfill_bucket_start(detection_end, backfill_days))) %}
28+
{%- set backfill_bucket_start = elementary.edr_cast_as_timestamp(elementary.edr_datetime_to_sql(elementary.get_backfill_bucket_start(detection_end, backfill_days))) %}
2929
{%- set full_table_name = elementary.relation_to_full_name(model_relation) %}
3030
{%- set force_metrics_backfill = elementary.get_config_var('force_metrics_backfill') %}
3131

0 commit comments

Comments
 (0)