-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding config option for table and incremental materializaions
- Loading branch information
Showing
3 changed files
with
25 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% macro bigquery__run_script_headers(script_headers) %} | ||
{%- if script_headers is not none -%} | ||
{%- if script_headers is string -%} | ||
{%- set script_headers = [script_headers] -%} | ||
{%- endif -%} | ||
|
||
{%- set formatted_script_headers = [] -%} | ||
|
||
{%- for script_header in script_headers -%} | ||
{%- set trimmed_script_header = script_header.strip() -%} | ||
{%- if not trimmed_script_header.endswith(';') -%} | ||
{%- set formatted_script_header = trimmed_script_header ~ ';' -%} | ||
{%- else -%} | ||
{%- set formatted_script_header = trimmed_script_header -%} | ||
{%- endif -%} | ||
{%- do formatted_script_headers.append(formatted_script_header) -%} | ||
{%- endfor -%} | ||
|
||
{{ formatted_script_headers | join('\n') }} | ||
{%- endif -%} | ||
{%- endmacro -%} |