-
Notifications
You must be signed in to change notification settings - Fork 550
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: add support for TRANSIENT keyword #807
snowflake: add support for TRANSIENT keyword #807
Conversation
Signed-off-by: Maciej Obuchowski <[email protected]>
Pull Request Test Coverage Report for Build 4206676074
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't think of a better place to put this comment, so I'll leave it as general.
- Can you please take a look into the linter? The CI is failing.
- Considering the documentation you presented, the transient is exclusive to other keywords before the 'TABLE' keyword:
CREATE [ OR REPLACE ]
[ { [ LOCAL | GLOBAL ] TEMP[ORARY] | VOLATILE } | TRANSIENT ]
Therefore, should the parse and print of it be flexible regarding both being present? You shouldn't accept CREATE LOCAL TRANSIENT TABLE,
right...?
Finally, since this is something specific, what do you think about adding validation to check if the dialect is the SnoflakeDialect or the GenericDialect?
Thanks for the PR!
@AugustoFKL the lint failures seem to be unrelated to my PR at all and I think #803 fixes them. If you want to see full green before approving or merging I'd wait until it gets merged and I'll rebase on top of it, to not duplicate any work. Regarding validation, I've thought it's kind of to the contrary to project goals:
I, of course, can add it if we agree that validation and accepting keywords based on dialect is what we generally want to pursue. |
I think this PR's addition of Thank for for the contribution @mobuchowski and @AugustoFKL (I really appreciate having a review prior to looking at these PRs -- it makes a big difference) ❤️ I took the liberty of merging up from main and fixing a small clippy lint in this PR to get a clean CI run |
Thanks @alamb! |
This PR adds support for Snowflake's TRANSIENT tables: https://docs.snowflake.com/en/user-guide/tables-temp-transient#transient-tables.
Snowflake grammar: https://docs.snowflake.com/en/sql-reference/sql/create-table#syntax
Signed-off-by: Maciej Obuchowski [email protected]