Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 7, 2026. It is now read-only.

feat: add bigframes.pandas.options.experiments.sql_compiler for switching the backend compiler#2417

Merged
chelsea-lin merged 2 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
main_chelsealin_addflagtoswitchcompilergoogleapis/python-bigquery-dataframes:main_chelsealin_addflagtoswitchcompilerCopy head branch name to clipboard
Feb 2, 2026
Merged

feat: add bigframes.pandas.options.experiments.sql_compiler for switching the backend compiler#2417
chelsea-lin merged 2 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
main_chelsealin_addflagtoswitchcompilergoogleapis/python-bigquery-dataframes:main_chelsealin_addflagtoswitchcompilerCopy head branch name to clipboard

Conversation

@chelsea-lin

Copy link
Copy Markdown
Contributor

This change adds bigframes.pandas.options.experiments.sql_compiler to allow switching the backend compiler. Currently, the default remains set to 'legacy' (ibis), but users can now optionally switch to the 'experimental' (sqlglot) compiler.

Fixes internal issue 479912001🦕

@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 Jan 29, 2026
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_addflagtoswitchcompiler branch from ea9d307 to b02a1f7 Compare January 29, 2026 23:32
@chelsea-lin chelsea-lin marked this pull request as ready for review January 29, 2026 23:36
@chelsea-lin chelsea-lin requested review from a team January 29, 2026 23:36
Comment on lines +180 to +184
compiler = (
sqlglot_compiler
if options.experiments.sql_compiler == "experimental"
else ibis_compiler
)

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.

Can we maybe use a helper function to dispatch the right compiler, just to make it easier to be consistent between all the places that use the compiler?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good points. Addressed.

@chelsea-lin chelsea-lin force-pushed the main_chelsealin_addflagtoswitchcompiler branch from 5b9d679 to 6c0bbab Compare January 30, 2026 22:13
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_addflagtoswitchcompiler branch from 6c0bbab to 7cba48a Compare January 30, 2026 22:17
@chelsea-lin chelsea-lin merged commit 7eba6ee into main Feb 2, 2026
24 of 26 checks passed
@chelsea-lin chelsea-lin deleted the main_chelsealin_addflagtoswitchcompiler branch February 2, 2026 21:46
shuoweil added a commit that referenced this pull request Feb 3, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
<details><summary>bigframes: 2.34.0</summary>

##
[2.34.0](v2.33.0...v2.34.0)
(2026-02-02)


### Features

* add `bigframes.pandas.options.experiments.sql_compiler` for switching
the backend compiler (#2417)
([7eba6ee](7eba6ee))
* add bigquery.ml.generate_embedding function (#2422)
([35f3f5e](35f3f5e))
* add bigquery.create_external_table method (#2415)
([76db295](76db295))
* add deprecation warnings for .blob accessor and read_gbq_object_table
(#2408)
([7261a4e](7261a4e))
* add bigquery.ml.generate_text function (#2403)
([5ac6810](5ac6810))


### Bug Fixes

* broken job url (#2411)
([fcb5bc1](fcb5bc1))
shuoweil pushed a commit that referenced this pull request Feb 4, 2026
…tching the backend compiler (#2417)

This change adds `bigframes.pandas.options.experiments.sql_compiler` to
allow switching the backend compiler. Currently, the default remains set
to 'legacy' (ibis), but users can now optionally switch to the
'experimental' (sqlglot) compiler.

Fixes internal issue 479912001🦕
shuoweil added a commit that referenced this pull request Feb 4, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
<details><summary>bigframes: 2.34.0</summary>

##
[2.34.0](v2.33.0...v2.34.0)
(2026-02-02)


### Features

* add `bigframes.pandas.options.experiments.sql_compiler` for switching
the backend compiler (#2417)
([7eba6ee](7eba6ee))
* add bigquery.ml.generate_embedding function (#2422)
([35f3f5e](35f3f5e))
* add bigquery.create_external_table method (#2415)
([76db295](76db295))
* add deprecation warnings for .blob accessor and read_gbq_object_table
(#2408)
([7261a4e](7261a4e))
* add bigquery.ml.generate_text function (#2403)
([5ac6810](5ac6810))


### Bug Fixes

* broken job url (#2411)
([fcb5bc1](fcb5bc1))
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-dataframes API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.