-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New structures - Multi-Active Satellites [Read More](../tutorial/tut_multi_active_satellites.md) Bug Fixes - Fixed a bug where an Effectivity Satellite with multiple DFKs or SDKs would incorrectly handle changes in the corresponding link records, meaning one to many relationships were not getting handled as intended. Improvements - Added support for multiple `order_by` or `partition_by` columns when creating ranked columns in the `stage` or `ranked_columns` macros.
- Loading branch information
Showing
11 changed files
with
261 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
{% macro check_placeholder(model_sql, placeholder='__PERIOD_FILTER__') %} | ||
{%- macro check_placeholder(model_sql, placeholder='__PERIOD_FILTER__') -%} | ||
|
||
{%- if model_sql.find(placeholder) == -1 -%} | ||
{%- set error_message -%} | ||
Model '{{ model.unique_id }}' does not include the required string '{{ placeholder }}' in its sql | ||
{%- endset -%} | ||
{{ exceptions.raise_compiler_error(error_message) }} | ||
{{- exceptions.raise_compiler_error(error_message) -}} | ||
{%- endif -%} | ||
|
||
{% endmacro %} | ||
{%- endmacro -%} | ||
|
||
|
||
{%- macro is_any_incremental() -%} | ||
{%- if dbtvault.is_vault_insert_by_period() or dbtvault.is_vault_insert_by_rank() or is_incremental() -%} | ||
{%- do return(true) -%} | ||
{%- else -%} | ||
{%- do return(false) -%} | ||
{%- endif -%} | ||
{%- 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
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
Oops, something went wrong.