Skip to content

Commit 5ca31b0

Browse files
committed
refactor: make sqlglot compile_sql a top-level function
1 parent 4318d66 commit 5ca31b0

File tree

4 files changed

+325
-345
lines changed

4 files changed

+325
-345
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)