Skip to content

Commit 9f4ff54

Browse files
committed
fix(sqlalchemy): use the backend's compiler instead of AlchemyCompiler
1 parent 9d63fd6 commit 9f4ff54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ibis/backends/base/sql/alchemy/registry.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ def _table_array_view(t, op):
129129

130130

131131
def _exists_subquery(t, op):
132-
from ibis.backends.base.sql.alchemy.query_builder import AlchemyCompiler
133-
134132
ctx = t.context
135133

136134
# TODO(kszucs): avoid converting the predicates to expressions
@@ -142,7 +140,7 @@ def _exists_subquery(t, op):
142140
)
143141

144142
sub_ctx = ctx.subcontext()
145-
clause = AlchemyCompiler.to_sql(filtered, sub_ctx, exists=True)
143+
clause = ctx.compiler.to_sql(filtered, sub_ctx, exists=True)
146144

147145
if isinstance(op, ops.NotExistsSubquery):
148146
clause = sa.not_(clause)

0 commit comments

Comments
 (0)