-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add classes to represent CTEs #1462
Conversation
plypaul
commented
Oct 15, 2024
- This PR adds classes to represent CTEs to the SQL object model.
- CTEs will be used in later PRs to simplify generated queries.
- Functionality to render CTEs is included, and existing code should not hit the CTE use cases so many methods were left unimplemented.
574c536
to
8553a29
Compare
@@ -78,6 +78,7 @@ class StaticIdPrefix(IdPrefix, Enum, metaclass=EnumMetaClassHelper): | |||
SQL_PLAN_TABLE_FROM_CLAUSE_ID_PREFIX = "tfc" | |||
SQL_PLAN_QUERY_FROM_CLAUSE_ID_PREFIX = "qfc" | |||
SQL_PLAN_CREATE_TABLE_AS_ID_PREFIX = "cta" | |||
SQL_PLAN_COMMON_TABLE_EXPRESSION_ID_PREFIX = "cta" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a dupe of the one above, did you mean cte
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, misclicked the approve