Skip to content

Commit

Permalink
chore: fix sql tests import
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Nov 27, 2023
1 parent 02f784c commit 573358f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ibis/tests/sql/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import sqlglot as sg

import ibis

# from ibis.backends.base.sql.compiler import Compiler, QueryContext
from ibis.backends.duckdb.compiler import translate
from ibis.backends.duckdb import Backend as DuckDBBackend
from ibis.tests.expr.mocks import MockBackend


Expand Down Expand Up @@ -78,7 +76,7 @@ def to_sql(expr, *args, **kwargs) -> str:

expr = expr.optimize()

sql = translate(expr.op(), params={})
sql = DuckDBBackend.compiler.translate(expr.op(), params={})
if isinstance(sql, sg.exp.Table):
sql = sg.select("*").from_(sql)

Expand Down

0 comments on commit 573358f

Please sign in to comment.