Skip to content

refactor(bigframes): enable sqlglot as the default compiler with failsafe mechanism#16602

Draft
chelsea-lin wants to merge 1 commit intomainfrom
main_chelsealin_enablesqlglot
Draft

refactor(bigframes): enable sqlglot as the default compiler with failsafe mechanism#16602
chelsea-lin wants to merge 1 commit intomainfrom
main_chelsealin_enablesqlglot

Conversation

@chelsea-lin
Copy link
Copy Markdown
Contributor

@chelsea-lin chelsea-lin commented Apr 9, 2026

Internal issue 417774347

Copy link
Copy Markdown
Contributor

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

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 introduces a compiler fallback mechanism in the BigQueryCachingExecutor, allowing the system to switch from sqlglot to ibis if a BadRequest occurs during compilation. It replaces the compiler utility with a more flexible compile_sql function and adds tracking labels to BigQuery jobs to identify the used compiler. Feedback identifies a critical AttributeError due to an outdated __all__ entry, a typo in the newly added unit tests, and a potential parsing risk when applying sqlglot_ir transformations to SQL generated by the ibis compiler during fallback.

@chelsea-lin chelsea-lin force-pushed the main_chelsealin_enablesqlglot branch from 5236310 to c03a02e Compare April 9, 2026 21:14
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_enablesqlglot branch from c03a02e to 2b783e3 Compare April 9, 2026 21:18
@parthea parthea changed the title refactor: enable sqlglot as the default compiler with failsafe mechanism refactor(bigframes): enable sqlglot as the default compiler with failsafe mechanism Apr 9, 2026
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