Skip to content

Commit

Permalink
Merge pull request #246 from ScalefreeCOM/revert-244-revert-243-add-c…
Browse files Browse the repository at this point in the history
…urrent-timestamp-default-ldts-value

Revert "Revert "Update stage.sql, add default ldts value""
  • Loading branch information
tkirschke authored Sep 2, 2024
2 parents e7c78ea + d4e349a commit 9305c44
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 9305c44

Please sign in to comment.