Skip to content

Best way to add Snowflake's TRANSIENT keyword (for CREATE)? #645

Closed Answered by georgesittas
ttzhou asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! I'll try to answer your questions inline:

whether I should create a new Create for Snowflake dialect with "transient" : False added to the arg_types, or just add to the "root" file

I think the best approach here is to just add the "transient": False argument in expressions.py. We don't have per-dialect expression or statement type definitions, so that parsing and transpiling is made easier.

whether to change the create_sql in base generator module, or subclass into Snowflake specific Generator

Better put it in the base generator module, because this is a core method and the SQL code will be pretty much identical, except for the TRANSIENT part.

similarly for _parse_create in ba…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ttzhou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants