Skip to content

Commit 43cd259

Browse files
authored
Enable to calculate metrics of a partitioned table in BigQuery (#81)
* Enable to calculate metrics of a partitioned table in BigQuery * Update macros/utils/time_macros.sql
1 parent ea6d7ae commit 43cd259

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

macros/utils/time_macros.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
{% endmacro %}
6262

6363
{% macro bigquery__in_time_window(time_column) %}
64-
timestamp({{time_column}}) >= {{ time_window_start() }} and
65-
timestamp({{time_column}}) < {{ time_window_end() }}
64+
cast({{time_column}} as timestamp) >= {{ time_window_start() }} and
65+
cast({{time_column}} as timestamp) < {{ time_window_end() }}
6666
{% endmacro %}
6767

6868

0 commit comments

Comments
 (0)