创建udf 来做字符串分割

In file included from test.cpp:1:0:
ExprFunctions.hpp:68:10: error: ‘ListAccum’ does not name a type
inline ListAccum string_split (string str, string delimiter) {
^
test.cpp: In function ‘int main()’:
test.cpp:4:30: error: ‘to_string’ was not declared in this scope
std::cout << to_string (123) << std::endl; // to_string and str_to_int are two built-in functions in ExprFunction.hpp
^
test.cpp:4:30: note: suggested alternative:
In file included from test.cpp:1:0:
ExprFunctions.hpp:62:17: note: ‘UDIMPL::to_string’
inline string to_string (double val) {
^
test.cpp:5:33: error: ‘str_to_int’ was not declared in this scope
std::cout << str_to_int (“123”) << std::endl;
^
test.cpp:5:33: note: suggested alternative:
In file included from test.cpp:1:0:
ExprFunctions.hpp:54:18: note: ‘UDIMPL::str_to_int’
inline int64_t str_to_int (string str) {