-
Notifications
You must be signed in to change notification settings - Fork 48
refactor: simplify filter and join nodes #321
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
Conversation
bigframes/core/blocks.py
Outdated
self.expr.column_ids, other.expr.column_ids | ||
left_mappings = [ | ||
join_defs.JoinColumnMapping( | ||
join_defs.JoinSide.LEFT, id, guid.generate_guid() |
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.
Please use keyword arguments for these JoinColumnMapping constructor arguments. It's difficult for me to check correctness. We might even want to force the use of keyword arguments with the use of *
syntax.
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.
Switched from namedtuple to dataclass and set kw_only=True
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.
ok, removed kw_only=True as that isn't allowed in old python versions, but still made all actual constructor invocations use kw args
a59aa43
to
0f58fb8
Compare
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.
Thanks!
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕