Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

refactor: simplify filter and join nodes#321

Merged
gcf-merge-on-green[bot] merged 5 commits intomainfrom
betterjoinfilter
Jan 19, 2024
Merged

refactor: simplify filter and join nodes#321
gcf-merge-on-green[bot] merged 5 commits intomainfrom
betterjoinfilter

Conversation

@TrevorBergeron
Copy link
Copy Markdown
Contributor

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jan 17, 2024
@TrevorBergeron TrevorBergeron marked this pull request as ready for review January 17, 2024 17:06
@TrevorBergeron TrevorBergeron requested review from a team and tswast January 17, 2024 17:06
Comment thread 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()
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor Author

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

@TrevorBergeron TrevorBergeron requested a review from tswast January 17, 2024 23:45
Copy link
Copy Markdown
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

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

Thanks!

@TrevorBergeron TrevorBergeron added the automerge Merge the pull request once unit tests and other checks pass. label Jan 19, 2024
@gcf-merge-on-green gcf-merge-on-green Bot merged commit c7aa1af into main Jan 19, 2024
@gcf-merge-on-green gcf-merge-on-green Bot deleted the betterjoinfilter branch January 19, 2024 22:20
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants