Skip to content

fix: update session metrics in read_gbq_query #1084

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 4 commits into from
Oct 15, 2024
Merged

Conversation

Genesis929
Copy link
Collaborator

@Genesis929 Genesis929 commented Oct 14, 2024

This change makes sure the session metrics correctly reflect slot milliseconds after ML transform.

Fixes internal issue 372547905 🦕

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Oct 14, 2024
@Genesis929 Genesis929 marked this pull request as ready for review October 14, 2024 23:51
@Genesis929 Genesis929 requested review from a team as code owners October 14, 2024 23:51
@Genesis929 Genesis929 requested a review from sycai October 14, 2024 23:51
@Genesis929 Genesis929 requested a review from shobsi October 14, 2024 23:52
@shobsi shobsi changed the title fix: update read_gbq_query query metric and fix ML transform metric m… fix: update session metrics upon read_gbq_query Oct 15, 2024
@shobsi shobsi changed the title fix: update session metrics upon read_gbq_query fix: update session metrics upon read_gbq_query Oct 15, 2024
@shobsi shobsi changed the title fix: update session metrics upon read_gbq_query fix: update session metrics in read_gbq_query Oct 15, 2024
@Genesis929 Genesis929 merged commit dced460 into main Oct 15, 2024
21 of 23 checks passed
@Genesis929 Genesis929 deleted the slottime_ml_fix_huanc branch October 15, 2024 18:02
@@ -529,6 +529,9 @@ def read_gbq_query(
configuration=configuration,
)

if self._metrics is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

I missed earlier, is the query_job guaranteed to have finished at this point? We should wait for the job to finish, like we do in other places before calling count_job_stats.

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: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants