-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cross-database `date` macro * Temporary dev requirements for testing * Update changelog entry * Revert "Temporary dev requirements for testing" This reverts commit 529461f.
- Loading branch information
Showing
3 changed files
with
16 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Cross-database `date` macro | ||
time: 2024-05-01T15:19:04.822157-06:00 | ||
custom: | ||
Author: dbeatty10 | ||
Issue: 1031 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% macro spark__date(year, month, day) -%} | ||
{%- set dt = modules.datetime.date(year, month, day) -%} | ||
{%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%} | ||
to_date('{{ iso_8601_formatted_date }}', 'yyyy-MM-dd') | ||
{%- endmacro %} |
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