Skip to content

Commit

Permalink
remove unnecessary offset
Browse files Browse the repository at this point in the history
  • Loading branch information
desmond-hui committed Jun 13, 2024
1 parent 592dd05 commit b27afac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/silver/parser/silver__decoded_logs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
USING(block_id)
{% if is_incremental() %}
WHERE
A._inserted_timestamp >= dateadd('minute', -5, '{{ max_inserted_timestamp }}')
A._inserted_timestamp >= '{{ max_inserted_timestamp }}'
AND A._partition_by_created_date_hour >= dateadd('hour', -2, date_trunc('hour','{{ max_inserted_timestamp }}'::timestamp_ntz))
{% endif %}
{% endset %}
Expand Down

0 comments on commit b27afac

Please sign in to comment.