Throwing exception from Python UDF #25096
michal-cech
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
how does Trino handle Python exceptions thrown from UDFs? My instance seems to hang for quite some time, after which I can see
INTERNAL ERROR — FUNCTION_IMPLEMENTATION_ERROR
. Is it possible to fail faster by throwing specific exception / killing the function prematurely? I suppose one way of doing it is by returning None or the message, but that feels wrong-ish, since it is not obvious on the first glance that the called function failed.Thanks
Beta Was this translation helpful? Give feedback.
All reactions