forked from Tomme/dbt-athena
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix snapshot valid to value (Tomme#149)
Co-authored-by: nicor88 <[email protected]> Co-authored-by: Jérémy Guiselin <[email protected]>
- Loading branch information
1 parent
a96179d
commit 8272eb2
Showing
3 changed files
with
118 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
{% | ||
pyathena converts time zoned timestamps to strings so lets avoid them now() | ||
%} | ||
|
||
{% macro athena__current_timestamp() -%} | ||
-- pyathena converts time zoned timestamps to strings so lets avoid them | ||
-- now() | ||
cast(now() as timestamp) | ||
{%- endmacro %} | ||
|
||
{% | ||
Macro to get the end_of_time timestamp | ||
%} | ||
|
||
{% macro end_of_time() -%} | ||
{{ return(adapter.dispatch('end_of_time')()) }} | ||
{%- endmacro %} | ||
|
||
{% macro athena__end_of_time() -%} | ||
cast('9999-01-01' AS timestamp) | ||
{%- endmacro %} |