From e3a4d4d2fbe6ca0016cf54bebf45114c8b093cf0 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 26 Jun 2023 05:51:14 -0400 Subject: [PATCH] refactor(postgres): fail at execute time for UDFs to avoid db connections in `.compile()` --- ibis/backends/postgres/tests/test_udf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/backends/postgres/tests/test_udf.py b/ibis/backends/postgres/tests/test_udf.py index 9a2120e39f75..ad29eb41399e 100644 --- a/ibis/backends/postgres/tests/test_udf.py +++ b/ibis/backends/postgres/tests/test_udf.py @@ -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))