-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Normalization to handle nested Streams in new Catalog API (#…
- Loading branch information
1 parent
8df1a13
commit d799b45
Showing
17 changed files
with
679 additions
and
364 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
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
21 changes: 21 additions & 0 deletions
21
...rations/bases/base-normalization/dbt-project-template/macros/cross_db_utils/datatypes.sql
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,21 @@ | ||
{# json ------------------------------------------------- #} | ||
|
||
{%- macro type_json() -%} | ||
{{ adapter.dispatch('type_json')() }} | ||
{%- endmacro -%} | ||
|
||
{% macro default__type_json() %} | ||
string | ||
{% endmacro %} | ||
|
||
{%- macro redshift__type_json() -%} | ||
varchar | ||
{%- endmacro -%} | ||
|
||
{% macro postgres__type_json() %} | ||
jsonb | ||
{% endmacro %} | ||
|
||
{% macro snowflake__type_json() %} | ||
variant | ||
{% 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
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
4 changes: 4 additions & 0 deletions
4
...e-integrations/bases/base-normalization/dbt-project-template/macros/get_custom_schema.sql
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,4 @@ | ||
-- see https://docs.getdbt.com/docs/building-a-dbt-project/building-models/using-custom-schemas/#an-alternative-pattern-for-generating-schema-names | ||
{% macro generate_schema_name(custom_schema_name, node) -%} | ||
{{ generate_schema_name_for_env(custom_schema_name, node) }} | ||
{%- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,6 +197,7 @@ | |
"INITIALLY", | ||
"INNER", | ||
"INTERSECT", | ||
"INTERVAL", | ||
"INTO", | ||
"IS", | ||
"ISNULL", | ||
|
Oops, something went wrong.