Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake: Enable REFRESH_ON_CREATE setting #199

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions macros/plugins/snowflake/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
{%- endif -%}
{% if partitions %} partition by ({{partitions|map(attribute='name')|join(', ')}}) {% endif %}
location = {{external.location}} {# stage #}
{% if external.refresh_on_create in (true, false) -%}
refresh_on_create = {{external.refresh_on_create}}
{%- endif %}
{% if external.auto_refresh in (true, false) -%}
auto_refresh = {{external.auto_refresh}}
{%- endif %}
Expand Down
3 changes: 2 additions & 1 deletion sample_sources/snowflake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ sources:
location: "@stage" # reference an existing external stage
file_format: "( type = parquet )" # fully specified here, or reference an existing file format
table_format: delta # specify the table format
auto_refresh: false # requires configuring an event notification from Amazon S3 or Azure
auto_refresh: false # requires configuring an event notification from Amazon S3 or Azure
refresh_on_create: false