Skip to content
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

Merged
merged 4 commits into from
Nov 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bigframes/session/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,12 @@ def _run_execute_query(
job_config.maximum_bytes_billed = (
bigframes.options.compute.maximum_bytes_billed
)
# Note: add_labels is global scope which may have unexpected effects
bq_io.add_labels(job_config, api_name=api_name)

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)
Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added

try:
query_job = self.bqclient.query(sql, job_config=job_config)
return (
Expand Down