Skip to content

Commit 97407c8

Browse files
committed
Fix Snapshots: DATE-field is missing milliseconds, resulting in a gap for the valid period
1 parent d0b2cc3 commit 97407c8

File tree

1 file changed

+1
-1
lines changed
  • dbt/include/oracle/macros/materializations/snapshot

1 file changed

+1
-1
lines changed

dbt/include/oracle/macros/materializations/snapshot/snapshot.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
{{ strategy.scd_id }} as dbt_scd_id,
165165
{{ strategy.updated_at }} as dbt_updated_at,
166166
{{ strategy.updated_at }} as dbt_valid_from,
167-
cast(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as DATE) as dbt_valid_to
167+
cast(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as TIMESTAMP) as dbt_valid_to
168168
from (
169169
{{ sql }}
170170
) sbq

0 commit comments

Comments
 (0)