Skip to content

Commit

Permalink
fix: try fixing CAST error
Browse files Browse the repository at this point in the history
  • Loading branch information
njogz committed Feb 7, 2024
1 parent 51d65b1 commit 028d973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/brac/contact_views/contactview_person.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ SELECT
doc->>'type' = 'person'

{% if is_incremental() %}
AND "@timestamp" > {{ coalesce(max_existing_timestamp('"@timestamp"'), '1970-01-01 00:00:00'::timestamp) }}
AND "@timestamp" > COALESCE({{ max_existing_timestamp('"@timestamp"', target_ref=ref("couchdb")) }}, '1970-01-01 00:00:00'::timestamp)
{% endif %}

0 comments on commit 028d973

Please sign in to comment.