Skip to content

Commit

Permalink
fix(duckdb): use connect instead of begin to avoid nesting transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 9, 2023
1 parent 983e23e commit 6889543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/duckdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def _get_temp_view_definition(
def _register_udfs(self, expr: ir.Expr) -> None:
import ibis.expr.operations as ops

with self.begin() as con:
with self.con.connect() as con:
for udf_node in expr.op().find(ops.ScalarUDF):
compile_func = getattr(
self, f"_compile_{udf_node.__input_type__.name.lower()}_udf"
Expand Down

0 comments on commit 6889543

Please sign in to comment.