-
Notifications
You must be signed in to change notification settings - Fork 43
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
fix: unordered mode too many labels issue. #1148
Conversation
|
||
if not self.strictly_ordered: | ||
job_config.labels["bigframes-mode"] = "unordered" | ||
|
||
# Note: add_labels is global scope which may have unexpected effects | ||
bq_io.add_labels(job_config, api_name=api_name) |
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.
Highly recommend adding a test using the customer's use case
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.
Added
@@ -2766,22 +2766,17 @@ def test_series_case_when(scalars_dfs_maybe_ordered): | |||
bf_series = scalars_df["int64_col"] | |||
pd_series = scalars_pandas_df["int64_col"] | |||
|
|||
# TODO(tswast): pandas case_when appears to assume True when a value is |
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.
I would keep this comment, or rather add a dedicated test that clearly conveys the intent - test_series_case_when_with_large_number_of_operations
, or even test_series_large_number_of_operations
, with comment that describes the labels limit
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.
Updated to have all cases in the original test. Keep only one test can be overall faster I think.
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> 🦕