Best way to add Snowflake's TRANSIENT
keyword (for CREATE
)?
#645
-
First off - thank you and contributors for the hard work put into such a great tool. It's inspiring. Discussion point: Looking to add First time attempting to contribute here, so wanted to ask/understand best way to go about this before opening a PR. Think it makes sense to add
Any guidance appreciated. Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! I'll try to answer your questions inline:
I think the best approach here is to just add the
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
Again, similar logic applies as above, so better in the base parser. We're trying to have the base parser be as lenient as possible because SQLGlot tries to be a superset of other dialects. Feel free to play around and open a PR and we can discuss this in more detail. I think this feature is a good starting point. |
Beta Was this translation helpful? Give feedback.
Hello! I'll try to answer your questions inline:
I think the best approach here is to just add the
"transient": False
argument inexpressions.py
. We don't have per-dialect expression or statement type definitions, so that parsing and transpiling is made easier.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.