Thread Safety for numpy, pandas for embedded python in UDF
Posted: Wed Jan 06, 2016 5:21 pm
There seems to be thread-safety issues while invoking python within C++ UDF's especially when the python code calls numpy or pandas. It turns out numpy and pandas aren't inherently thread-safe. As a consequence, scalar UDF's invoking the python code fail, and also it appears only one transform UDF call can be made in a session.
Any pointers on how to ensure thread safety while invoking python within C++ UDF? I see a few links like http://www.codeproject.com/Articles/118 ... -C-Part-II
Would this help? Any recommendations on how to get around this problem?
Any pointers on how to ensure thread safety while invoking python within C++ UDF? I see a few links like http://www.codeproject.com/Articles/118 ... -C-Part-II
Would this help? Any recommendations on how to get around this problem?