Skip to content

refactor: all ArrayValue ops return only ArrayValue #92

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

Merged
merged 11 commits into from
Oct 12, 2023

Conversation

TrevorBergeron
Copy link
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 Oct 6, 2023
@TrevorBergeron TrevorBergeron marked this pull request as ready for review October 9, 2023 19:45
@TrevorBergeron TrevorBergeron requested review from a team as code owners October 9, 2023 19:45
@TrevorBergeron TrevorBergeron requested a review from tswast October 9, 2023 19:45
Copy link
Collaborator

@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.

I like it! One question.

def __call__(
self, left_column_ids: Sequence[str], right_column_ids: Sequence[str]
) -> Tuple[Mapping[str, str], Mapping[str, str]]:
"""When joining column ids from different namespaces, this function defines how names are remapped. Map only non-hidden ids."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see here you warn to "Map only non-hidden IDs" but we are passing in some hidden columns in bigframes/core/joins/row_identity.py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adjusted code comment to reflect the real constraint: hidden ids should be mapped in a separate namespace as they are compile context-dependent, while value columns names must be fixed regardless of compilation modes.

@TrevorBergeron TrevorBergeron merged commit 855616a into main Oct 12, 2023
@TrevorBergeron TrevorBergeron deleted the arrayfactor2 branch October 12, 2023 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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