I need to maintain a data structure in C++ UDF that persists and can be used acropss queries.
I have created a few struct objects in ExprUtils.hpp that I was expecting to persist across query calls. But, I am seeing that for every query they seem to be reinitialized. Is dlopen and dlclose done on UDF shared lib for every query. Is there a way to have it persist so that one query sets certain things up which can be used by another query?
Thanks for your help!