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

totalBytesProcessed is not exposed from RowIterator #1996

Open
bnaul opened this issue Aug 15, 2024 · 1 comment
Open

totalBytesProcessed is not exposed from RowIterator #1996

bnaul opened this issue Aug 15, 2024 · 1 comment
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@bnaul
Copy link
Contributor

bnaul commented Aug 15, 2024

RowIterator resulting from query_and_wait() for the new short query mode exposes most of its internal state via properties (cf. e.g. num_dml_affected_rows) but does not provide a total_bytes_processed property to access self.totalBytesProcessed. It would be nice if as many as possible of the same attributes were present to make transitioning to query_and_wait() from query() as smooth as possible.

I'm sure there are other attributes too but this is the one that I ran into first.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Aug 16, 2024
@tswast tswast added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Aug 16, 2024
@tswast
Copy link
Contributor

tswast commented Sep 13, 2024

totalBytesProcessed is exposed by the jobs.query response body, so this should be feasible. There's a few other stats exposed on that message, but not all that many.

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 API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants