File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 16
16
import typing
17
17
18
18
import 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
+
20
22
import bigframes .session .executor
21
23
22
24
23
25
@dataclasses .dataclass
24
26
class SQLCompilerExecutor (bigframes .session .executor .Executor ):
25
27
"""Executor for SQL compilation using sqlglot."""
26
28
27
- compiler = sqlglot
28
-
29
29
def to_sql (
30
30
self ,
31
31
array_value : bigframes .core .ArrayValue ,
@@ -38,6 +38,6 @@ def to_sql(
38
38
39
39
# Compared with BigQueryCachingExecutor, SQLCompilerExecutor skips
40
40
# 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
You can’t perform that action at this time.
0 commit comments