Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

fix: update session metrics in read_gbq_query#1084

Merged
Genesis929 merged 4 commits intomainfrom
slottime_ml_fix_huanc
Oct 15, 2024
Merged

fix: update session metrics in read_gbq_query#1084
Genesis929 merged 4 commits intomainfrom
slottime_ml_fix_huanc

Conversation

@Genesis929
Copy link
Copy Markdown
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 and 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
@Genesis929 Genesis929 deleted the slottime_ml_fix_huanc branch October 15, 2024 18:02
configuration=configuration,
)

if self._metrics is not None:
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.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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