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 delta format #240

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Conversation

danielefrigo
Copy link

@danielefrigo danielefrigo commented Nov 10, 2023

Description & motivation

resolves: #198

Snowflake supports external tables on Delta format external stages, but they do not support automatic refresh.
When creating them, it's mandatory to specify refresh_on_create = false.

Checklist

  • I have verified that these changes work locally
  • I have updated the README.md (if applicable)
  • I have added an integration test for my fix/feature (if applicable)

@rolandlaaper
Copy link

It would be great if this PR is completed @jeremyyeo because at this moment external tables in delta can't be created using the package.

Comment on lines -9 to +10
{% set manual_refresh = (partitions and not auto_refresh) %}
{% set manual_refresh = not auto_refresh %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danielefrigo explain why partitions is removed here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this condition, only partitioned tables are refreshed by the package.
There are multiple situations (delta tables is one of them) in which you want to manually refresh an external tables (e.g. you cannot setup Snowflake automatic refresh for technical reasons on the cloud provider), so I'd prefer to link this feature only to the auto_refresh flag

Copy link
Collaborator

@dataders dataders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @danielefrigo!

@dataders dataders merged commit 58fc3ce into dbt-labs:main Apr 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't create Snowflake External Table of table_format: delta
4 participants