How can I get the final select statement of a CREATE VIEW DDL statement? #3172
Replies: 1 comment 3 replies
-
please read this https://github.com/tobymao/sqlglot/blob/main/posts/ast_primer.md |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello again!
Apologies if this is a basic question, but I am struggling to get the final select statement of a query.
Suppose I have a create-view DDL definition which runs as follows:
I want to traverse the expression to get the final select of the expression, which (in my head, at least!) is this part:
Please tell me if I need to think about this differently, and how I might achieve this with sqlglot?
Thanks so much!
Rory
Beta Was this translation helpful? Give feedback.
All reactions