fix: compilation of a labeled custom FunctionElement when used in grouping by snapiri · Pull Request #1155 · googleapis/python-bigquery-sqlalchemy · GitHub
Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

fix: compilation of a labeled custom FunctionElement when used in grouping#1155

Merged
tswast merged 2 commits into
googleapis:mainfrom
snapiri:1150-Fix_grouped_label
Jan 21, 2025
Merged

fix: compilation of a labeled custom FunctionElement when used in grouping#1155
tswast merged 2 commits into
googleapis:mainfrom
snapiri:1150-Fix_grouped_label

Conversation

@snapiri

@snapiri snapiri commented Jan 19, 2025

Copy link
Copy Markdown
Contributor

If we have a labeled custom function that we are grouping by, and the function does not support the default dialect, we can not compile our query.

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)
  • [N/A] Appropriate docs were updated (if necessary)

Fixes #1150 🦕

@snapiri snapiri requested review from a team and alvarowolfx January 19, 2025 06:49
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Jan 19, 2025
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. label Jan 19, 2025
If we have a labeled custom function that we are grouping by, and the
function does not support the `default` dialect, we can not compile our
query.
@snapiri snapiri force-pushed the 1150-Fix_grouped_label branch from 670082f to 87696fb Compare January 19, 2025 06:52
@snapiri

snapiri commented Jan 21, 2025

Copy link
Copy Markdown
Contributor Author

@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 21, 2025
@yoshi-kokoro yoshi-kokoro removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 21, 2025
Comment thread tests/unit/test_compiler.py Outdated
@tswast tswast changed the title [1150] Fix grouped label fix: compilation of a labeled custom FunctionElement when used in grouping Jan 21, 2025
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 21, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 21, 2025
@tswast tswast added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 21, 2025
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 21, 2025
@tswast tswast merged commit 4a0f8ad into googleapis:main Jan 21, 2025
@tswast

tswast commented Jan 21, 2025

Copy link
Copy Markdown
Contributor

Thanks so much for the contribution @snapiri !

@tswast

tswast commented Jan 21, 2025

Copy link
Copy Markdown
Contributor

This should be released as part of 1.12.1. Follow #1142 for further updates.

@snapiri

snapiri commented Jan 21, 2025

Copy link
Copy Markdown
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation of a labeled custom FunctionElement fails when used in grouping

4 participants