Skip to content

refactor: split read_gbq_table implementation into functions and move to separate module - #642

Merged
tswast merged 7 commits into
mainfrom
b335727141-refactor-read_gbq_table
Apr 30, 2024
Merged

refactor: split read_gbq_table implementation into functions and move to separate module#642
tswast merged 7 commits into
mainfrom
b335727141-refactor-read_gbq_table

Conversation

@tswast

@tswast tswast commented Apr 26, 2024

Copy link
Copy Markdown
Collaborator

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 Apr 26, 2024
@tswast
tswast marked this pull request as ready for review April 29, 2024 22:30
@tswast
tswast requested review from a team and DevStephanie April 29, 2024 22:30
@tswast
tswast requested review from Genesis929 and removed request for DevStephanie April 29, 2024 22:33
Comment thread bigframes/session/__init__.py Outdated

@chelsea-lin chelsea-lin left a comment

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.

LGTM

# the same assumption and use these columns as the total ordering keys.
is_index_unique = len(index_cols) != 0
else:
is_index_unique = _check_index_uniqueness(

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.

This operation is also quiet expensive though.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I want to minimize any behavior changes in this PR. Filed b/338065601 to follow-up.

@tswast
tswast merged commit 9a9f2bc into main Apr 30, 2024
@tswast
tswast deleted the b335727141-refactor-read_gbq_table branch April 30, 2024 17:26
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.

3 participants