Skip to content
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

Replace is_table with as_sql_table_node #1502

Merged
merged 1 commit into from
Nov 10, 2024
Merged

Replace is_table with as_sql_table_node #1502

merged 1 commit into from
Nov 10, 2024

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Nov 4, 2024

This removes SqlQueryPlanNode.is_table and replaces it with a typed accessor for parallelism with as_select_node. This is helpful in handling some use cases for CTEs.

@@ -356,11 +358,11 @@ def render_node(self) -> SqlQueryPlanNode: # noqa: D102
class SqlCteNode(SqlQueryPlanNode):
"""Represents a single common table expression."""

select_statement: SqlSelectStatementNode
select_statement: SqlQueryPlanNode
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice this change got mixed in - this is to make recursive handling easier and it turns out the typed form is not necessary.

@plypaul plypaul marked this pull request as ready for review November 4, 2024 17:07
@plypaul plypaul merged commit 2eaf47a into main Nov 10, 2024
15 checks passed
@plypaul plypaul deleted the p--cte--07 branch November 10, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants