This repository was archived by the owner on Apr 1, 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 1515
1616from bigframes .core .compile .api import test_only_ibis_inferred_schema
1717from bigframes .core .compile .configs import CompileRequest , CompileResult
18- from bigframes .core .compile .ibis_compiler . ibis_compiler import compile_sql
18+ from bigframes .core .compile .sqlglot . compiler import compile_sql
1919
2020__all__ = [
2121 "test_only_ibis_inferred_schema" ,
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ def apply_window_if_present(
6262
6363 # This is the key change. Don't create a spec for the default window frame
6464 # if there's no ordering. This avoids generating an `ORDER BY NULL` clause.
65- if not window .bounds and not order :
65+ if window .is_unbounded and not order :
6666 return sge .Window (this = value , partition_by = group_by )
6767
68- if not window .bounds or not include_framing_clauses :
68+ if window .is_unbounded and not include_framing_clauses :
6969 return sge .Window (this = value , partition_by = group_by , order = order )
7070
7171 kind = (
Original file line number Diff line number Diff line change 2020import google .cloud .bigquery .table as bq_table
2121
2222from bigframes .core import compile , nodes
23- from bigframes .core .compile import sqlglot
23+ from bigframes .core .compile .ibis_compiler .ibis_compiler import (
24+ compile_sql as compile_sql_ibis ,
25+ )
2426import bigframes .core .events
2527from bigframes .session import executor , semi_executor
2628import bigframes .session ._io .bigquery as bq_io
@@ -40,7 +42,7 @@ def __init__(
4042 ):
4143 self .bqclient = bqclient
4244 self ._compile_fn = (
43- compile . compile_sql if compiler == "ibis" else sqlglot .compile_sql
45+ compile_sql_ibis if compiler == "ibis" else compile .compile_sql
4446 )
4547 self ._publisher = publisher
4648
You can’t perform that action at this time.
0 commit comments