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

[BSE-4155] Add support for the Root relational node #41

Merged
merged 118 commits into from
Nov 14, 2024
Merged

Conversation

njriasan
Copy link
Contributor

Adds support for the basic definition of the Root relational node.

@njriasan njriasan removed the request for review from knassre-bodo November 14, 2024 04:00
self,
input: Relational,
ordered_columns: MutableSequence[tuple[str, RelationalExpression]],
orderings: MutableSequence[ColumnOrdering] | None = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it should ever be None, though it could be empty. That way, the check for "do we need to insert an Order By" is just "is the list non-empty" (that could also go for Limit, which per our current design should never be empty or None).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For convenience I was just making it possible to omit the argument if there is no required ordering. We may later want to remove this, but it's nice for testing.

Base automatically changed from nick/filter to main November 14, 2024 20:11
@njriasan njriasan merged commit 3d5bf76 into main Nov 14, 2024
4 checks passed
@njriasan njriasan deleted the nick/root branch November 14, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants