Skip to content

feat(bigframes): Enable local udf execution#17588

Open
TrevorBergeron wants to merge 7 commits into
mainfrom
tbergeron_local_udf_exec
Open

feat(bigframes): Enable local udf execution#17588
TrevorBergeron wants to merge 7 commits into
mainfrom
tbergeron_local_udf_exec

Conversation

@TrevorBergeron

Copy link
Copy Markdown
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> 🦕

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds support for struct operations, JSON string conversion, and Python UDF compilation in the Polars compiler, alongside refactoring UDF signature resolution into a shared utility and adding corresponding unit tests. The review feedback highlights a missing from __future__ import annotations import in _utils.py needed for PEP 604 type hints on older Python versions, an incorrect struct field extraction syntax in Polars, and a performance bottleneck in the UDF compiler where callable compilation is performed per-row instead of once.

Comment thread packages/bigframes/bigframes/functions/_utils.py
Comment thread packages/bigframes/bigframes/core/compile/polars/compiler.py Outdated
Comment thread packages/bigframes/bigframes/core/compile/polars/compiler.py
@TrevorBergeron TrevorBergeron marked this pull request as ready for review June 27, 2026 00:29
@TrevorBergeron TrevorBergeron requested review from a team as code owners June 27, 2026 00:29
@TrevorBergeron TrevorBergeron requested review from shuoweil and removed request for a team June 27, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant