Skip to content

feat: merge only generates a default index if both inputs already have an index #733

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 3 commits into from
May 31, 2024

Conversation

tswast
Copy link
Collaborator

@tswast tswast commented May 29, 2024

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> 🦕

@tswast tswast requested review from a team as code owners May 29, 2024 21:56
@tswast tswast requested a review from Genesis929 May 29, 2024 21:56
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels May 29, 2024
@@ -61,10 +61,12 @@ def _init_bigquery_thread_local(self):
@property
def bigquery(self) -> bigquery_options.BigQueryOptions:
"""Options to use with the BigQuery engine."""
if self._local.bigquery_options is not None:
if (
bigquery_options := getattr(self._local, "bigquery_options", None)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not 100% sure how this was failing, but for some reason self._local.bigquery_options wasn't being initialized when I ran from a notebook in VS Code.

I think it's because the original Options.__init__ from the import ran in a different thread from the one where the actual cell code was running.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed by #741

@@ -0,0 +1,288 @@
# Copyright 2024 Google LLC
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved from tests/system/small/test_empty_index.py and added test_null_index_merge_* tests.

@tswast tswast merged commit 25d049c into main May 31, 2024
18 of 21 checks passed
@tswast tswast deleted the tswast-null-index-docs branch May 31, 2024 18:35
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: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants