-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
pydough/relational/root.py
Outdated
self, | ||
input: Relational, | ||
ordered_columns: MutableSequence[tuple[str, RelationalExpression]], | ||
orderings: MutableSequence[ColumnOrdering] | None = None, |
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.
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).
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.
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.
Adds support for the basic definition of the Root relational node.