8000 chore: add total_bytes_processed to PandasBatches by tswast · Pull Request #2052 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@tswast
Copy link
Collaborator
@tswast tswast commented Sep 4, 2025

Fixes internal issue b/443094245
🦕

Fixes internal issue b/443094245
@tswast tswast requested review from a team as code owners September 4, 2025 19:19
@tswast tswast requested a review from chelsea-lin September 4, 2025 19:19
@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 Sep 4, 2025
pandas_batches: Iterator[pd.DataFrame],
total_rows: Optional[int] = 0,
*,
total_bytes_processed: Optional[int] = 0,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wonder if this should default to None to indicate cases where query execution didn't happen?

Copy link
Contributor

Choose a reason for hiding this comment

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

i think a default of None is probably safest? 0 should be a confident statement of zero bytes billed ideally?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think 0 should be used whenever we are sure we didn't burn any query resources though

@tswast tswast enabled auto-merge (squash) September 4, 2025 19:37
@tswast tswast merged commit f7196d1 into main Sep 4, 2025
18 of 25 checks passed
@tswast tswast deleted the b443094245-bytes_processed branch September 4, 2025 19:42
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.

3 participants

0