Skip to content

Commit

Permalink
refactor(postgres): fail at execute time for UDFs to avoid db connect…
Browse files Browse the repository at this point in the history
…ions in `.compile()`
  • Loading branch information
cpcloud committed Jun 26, 2023
1 parent 7e56fc4 commit e3a4d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/postgres/tests/test_udf.py
Expand Up @@ -180,4 +180,4 @@ def multiply(a: int, b: int) -> int:
return a * b

with pytest.raises(exc.InvalidDecoratorError, match="@udf"):
con_for_udf.compile(multiply(1, 2))
con_for_udf.execute(multiply(1, 2))

0 comments on commit e3a4d4d

Please sign in to comment.