This repository was archived by the owner on May 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616import typing
1717
1818import bigframes .core
19- import bigframes .core .compile .sqlglot as sqlglot
19+ from bigframes .core .compile import configs
20+ from bigframes .core .compile .ibis_compiler import ibis_compiler
21+
2022import bigframes .session .executor
2123
2224
2325@dataclasses .dataclass
2426class SQLCompilerExecutor (bigframes .session .executor .Executor ):
2527 """Executor for SQL compilation using sqlglot."""
2628
27- compiler = sqlglot
28-
2929 def to_sql (
3030 self ,
3131 array_value : bigframes .core .ArrayValue ,
@@ -38,9 +38,9 @@ def to_sql(
3838
3939 # Compared with BigQueryCachingExecutor, SQLCompilerExecutor skips
4040 # caching the subtree.
41- return self . compiler . SQLGlotCompiler (). compile (
42- array_value . node , ordered = ordered
43- )
41+ request = configs . CompileRequest ( array_value . node , sort_rows = ordered )
42+ compiled = ibis_compiler . compile_sql ( request )
43+ return compiled . sql
4444
4545 def execute (
4646 self ,
You can’t perform that action at this time.
0 commit comments