remove unnecessary MAX()

This commit is contained in:
Desmond Hui 2024-01-12 09:35:21 -08:00
parent 0458b47dbd
commit 3575403e18
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ WHERE
{{ this }}
)
AND
A._partition_by_created_date_hour >= dateadd('hour', -3, MAX(current_timestamp()))
A._partition_by_created_date_hour >= dateadd('hour', -3, current_timestamp())
{% endif %}
qualify(ROW_NUMBER() over (PARTITION BY tx_id, INDEX, coalesce(inner_index,-1)

View File

@ -27,7 +27,7 @@ WHERE
{{ this }}
)
AND
_partition_by_created_date_hour >= dateadd('hour', -3, MAX(current_timestamp()))
_partition_by_created_date_hour >= dateadd('hour', -3, current_timestamp())
{% else %}
{{ ref('bronze__streamline_FR_decoded_instructions_2') }}
{% endif %}