Snowflake Table Generator during Execute #3183
-
It seems like the execution module doesn't support the Snowflake Generator function. minimal reproducible sample:
Yields: It seems like it doesn't get recognized as a Table expression. Am I approaching this incorrectly? Thanks for any insight! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is not supported by the executor today, so this seems expected. |
Beta Was this translation helpful? Give feedback.
-
I appreciate the response. Do you have any suggestions on how I might possibly create a workaround and/or point me to a couple of places in the codebase so that I might be able to contribute supporting this? Presumably, it would be some combination of the context/python/table files in the executor module, and/or maybe the snowflake dialect file? |
Beta Was this translation helpful? Give feedback.
You would have to start by adding parsing/generation support for the
GENERATOR
clause. Then, you would have to implement its semantics in the executor, but I'm not sure what exactly that'd entail. I'm also not sure how the planner deals with table functions at the moment, perhaps you may also have to augment it in order to take them into account?