Skip to content

Commit

Permalink
Revert "Revert "Update stage.sql, add default ldts value""
Browse files Browse the repository at this point in the history
  • Loading branch information
tkiehn authored Sep 2, 2024
1 parent e09b653 commit d4e349a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macros/staging/stage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
{%- set include_source_columns = true -%}
{%- endif -%}

{# If ldts is empty replace it with the current timestamp #}
{%- if datavault4dbt.is_nothing(ldts) -%}
{%- set ldts = datavault4dbt.current_timestamp() -%}
{%- endif -%}

{{- adapter.dispatch('stage', 'datavault4dbt')(include_source_columns=include_source_columns,
ldts=ldts,
rsrc=rsrc,
Expand Down

0 comments on commit d4e349a

Please sign in to comment.