How to run cleanup code at the end of Presto/Trino custom UDF?

117 Views Asked by At

I have created a custom Scalar PrestoSQL/Trino UDF. I wanted to know if it is possible to detect and run a method at the end of UDF execution (end of execution of a task or after the last row/data of the split)? I want to run a cleanup/IPC resource deallocation after the UDF finishes execution on a split (kind of like a close() method)

0

There are 0 best solutions below