File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-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
+ import bigframes .core .compile .compiler as compiler
20
21
import bigframes .session .executor
21
22
22
23
23
24
@dataclasses .dataclass
24
25
class SQLCompilerExecutor (bigframes .session .executor .Executor ):
25
26
"""Executor for SQL compilation using sqlglot."""
26
27
27
- compiler = sqlglot
28
-
29
28
def to_sql (
30
29
self ,
31
30
array_value : bigframes .core .ArrayValue ,
@@ -38,6 +37,6 @@ def to_sql(
38
37
39
38
# Compared with BigQueryCachingExecutor, SQLCompilerExecutor skips
40
39
# caching the subtree.
41
- return self . compiler . SQLGlotCompiler (). compile (
42
- array_value . node , ordered = ordered
43
- )
40
+ request = configs . CompileRequest ( array_value . node , sort_rows = ordered )
41
+ compiled = compiler . compile_sql ( request )
42
+ return compiled . sql
You can’t perform that action at this time.
0 commit comments