snowflake: add support for TRANSIENT keyword#807
Conversation
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
Pull Request Test Coverage Report for Build 4206676074
💛 - Coveralls |
AugustoFKL
left a comment
There was a problem hiding this comment.
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 obuchowski.maciej@gmail.com