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

Disable snowpipe refresh #300

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## dbt-external-tables VNEXT


### Snowflake
* Snowpipes should never refresh even if `auto_refresh` is set to `True` ([#250](https://github.com/dbt-labs/dbt-external-tables/issues/250)

## dbt-external-tables v0.9.0

### Snowflake
Expand Down
2 changes: 1 addition & 1 deletion macros/plugins/snowflake/get_external_build_plan.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
dbt_external_tables.snowflake_create_snowpipe(source_node)
] %}
{% else %}
{% set build_plan = build_plan + dbt_external_tables.snowflake_refresh_snowpipe(source_node) %}
{% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}
{% endif %}

{% else %}
Expand Down
4 changes: 4 additions & 0 deletions macros/plugins/snowflake/refresh_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

{% do return([ddl]) %}

{% elif snowpipe is not none %}

{% do return([]) %}

{% else %}

{% do return([]) %}
Expand Down
20 changes: 0 additions & 20 deletions macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql

This file was deleted.

Loading