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: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Sep 13, 2025
@TrevorBergeron TrevorBergeron marked this pull request as ready for review September 15, 2025 18:25
@TrevorBergeron TrevorBergeron requested review from a team as code owners September 15, 2025 18:25


class ScalarOpCompiler:
class ExpressionCompiler:
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it starts compiling analytic expressions then yeah. For now, ScalarOpCompiler is fine, as it only compiles scalar ops right now.

),
window,
bindings={"_observation_count": is_observation},
lambda x, y: ops.and_op.as_expr(x, y), per_col_does_count
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead compiling to Ibis nodes directly, it rewrites the BF expressions at middle of the compiler. The SQLGlot compiler follows the old pattern to write the SQLGlot expressions. What benefits to have the additional conversions to BF expressions here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No immediate benefit. Later, I'll pull this step out as a modular rewriter, which we can use for the sqlglot compiler as well

@TrevorBergeron TrevorBergeron added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 16, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 16, 2025
@TrevorBergeron TrevorBergeron merged commit 090ce8e into main Sep 16, 2025
24 of 25 checks passed
@TrevorBergeron TrevorBergeron deleted the window_expr branch September 16, 2025 18:22
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: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants