How PRISM optimizes UDFs via a DuckDB extension

This paper The Key to Effective UDF Optimization: Before Inlining, First Perform Outlining implements its ideas in DuckDB as an extension and I was curious specifically on how the authors access the SQL UDF to start working on it. I got the code from Sam Arch’s github , and I followed the instructions there on building and running their extension. In udf_transpiler_extension.cpp in the…