Skip to content

Conversation

TrevorBergeron
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> πŸ¦•

@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 Feb 13, 2025
@TrevorBergeron TrevorBergeron marked this pull request as ready for review February 13, 2025 22:47
@TrevorBergeron TrevorBergeron requested review from a team as code owners February 13, 2025 22:47
return (
ibis_api.case().when(bq_sum.isnull(), ibis_types.literal(0)).else_(bq_sum).end() # type: ignore
)
return bq_sum.fillna(ibis_types.literal(0))
Copy link
Contributor

Choose a reason for hiding this comment

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

Much more readable, thanks! Curious if it gives some SQL simplification and/or performance gains too?

@TrevorBergeron TrevorBergeron enabled auto-merge (squash) February 14, 2025 22:50
@TrevorBergeron TrevorBergeron merged commit 0145656 into main Feb 14, 2025
23 checks passed
@TrevorBergeron TrevorBergeron deleted the simple_sum branch February 14, 2025 23: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