-
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 Project relational node #37
Conversation
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'm increasingly opposed to the use of .ordering
and think it is a slippery slope towards making our lives hell in this IR form, and it gives us no real benefit.
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.
A bunch of nitpicks but LGTM.
from being generated. | ||
""" | ||
|
||
def __init__(self, value: Any, data_type: PyDoughType): |
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.
Should this be Any
or object
?
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.
These are equivalent. Everything inherits from object in Python. Personally I prefer Any.
def __hash__(self) -> int: | ||
# Note: This will break if the value isn't hashable. | ||
return hash((self.value, self.data_type)) |
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.
See my point in the Scan
PR about hashing; would the string representation be sufficient?
Adds support for the basic definition of the Project relational node.