From d0f7c187687cad1731a3da21791b58cec14bbfaa Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Wed, 2 Apr 2025 11:38:30 -0700 Subject: [PATCH] fixed bracket placement --- .../oracle/macros/materializations/snapshot/snapshot.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql b/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql index bb9175f..7df29a4 100644 --- a/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql +++ b/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql @@ -377,8 +377,8 @@ {%- endmacro %} {% macro oracle__get_dbt_valid_to_current(strategy, columns) %} - {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or "CAST(null as TIMESTAMP(9)" %} - coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})) + {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or "CAST(null as TIMESTAMP(9))" %} + coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}}) as {{ columns.dbt_valid_to }} {% endmacro %}