Skip to content

Conversation

@chelsea-lin
Copy link
Contributor

@chelsea-lin chelsea-lin commented Sep 18, 2025

Fixes internal issue 445774480 🦕

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Sep 18, 2025
@chelsea-lin chelsea-lin requested a review from sycai September 18, 2025 00:07
@chelsea-lin chelsea-lin marked this pull request as ready for review September 18, 2025 00:07
@chelsea-lin chelsea-lin requested review from a team as code owners September 18, 2025 00:07
Comment on lines 251 to 253
if isinstance(timedelta, int):
return timedelta

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmmm, what's the reason behind this branch here? If the input is an integer, may be just leave it as-is at the call site?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The compiler wants to support ir._literal(0, dtypes.TIMEDELTA_DTYPE). We have this change or undo this commit: 17b5d3e

Hence, let timedelta_to_micros to be generic when the time delta presented as an integer too. I think it would be ideal here.

@chelsea-lin chelsea-lin requested a review from sycai September 18, 2025 17:55
@chelsea-lin chelsea-lin merged commit 999dd99 into main Sep 18, 2025
19 of 25 checks passed
@chelsea-lin chelsea-lin deleted the main_chelsealin_agg branch September 18, 2025 21:34
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: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants