Skip to content

Commit 2e77861

Browse files
authored
refactor: make sqlglot compile_sql a top-level function (#2244)
This change prepares to enable SQLGlot as the default compiler. Making compile_sql a top-level function makes it consistent with the existing Ibis API, which simplifies onboarding.
1 parent cc2dbae commit 2e77861

File tree

6 files changed

+320
-348
lines changed

6 files changed

+320
-348
lines changed

bigframes/core/compile/sqlglot/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
from __future__ import annotations
1515

16-
from bigframes.core.compile.sqlglot.compiler import SQLGlotCompiler
16+
from bigframes.core.compile.sqlglot.compiler import compile_sql
1717
import bigframes.core.compile.sqlglot.expressions.ai_ops # noqa: F401
1818
import bigframes.core.compile.sqlglot.expressions.array_ops # noqa: F401
1919
import bigframes.core.compile.sqlglot.expressions.blob_ops # noqa: F401
@@ -29,4 +29,4 @@
2929
import bigframes.core.compile.sqlglot.expressions.struct_ops # noqa: F401
3030
import bigframes.core.compile.sqlglot.expressions.timedelta_ops # noqa: F401
3131

32-
__all__ = ["SQLGlotCompiler"]
32+
__all__ = ["compile_sql"]

0 commit comments

Comments
 (0)