User defined function c++ error


The documentation

is not clear and says to define in <tigergraph.root.dir>/dev/gdk/gsql/src/QueryUdf/ExprUtil.hpp and ExprFunctions.hpp.

I defined my function in ExprFunctions.hpp and gsql is unable to add it since it says my function isn’t defined.

Hi Meghana,

Our documentation here is more up to date with our latest release versions:

Sometimes, you need to make a small change in your query to get it to recognize the changes in your ExprFunctions.hpp file.

Could you try this (add a space somewhere, and save the query) and let us know if the issue is still there?