The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

Error I create UDx C++ SearchAndReplace Function

I compiled C++ library in the directory of /opt/vertica/sdk/examples/FilterFunctions/

by the The following command:


g++ -D HAVE_LONG_INT_64 -I /opt/vertica/sdk/examples/HelperLibraries/ -I /opt/vertica/sdk/include -Wall -shared -Wno-unused-value -fPIC -o /opt/vertica/sdk/include/Vertica.cpp SearchAndReplaceFilter.cpp


Then I create library in Vertica:


CREATE LIBRARY ReplaceFunction AS '/opt/vertica/sdk/examples/FilterFunctions/';
And I create function in Vertica:
CREATE FUNCTION SearchAndReplace AS LANGUAGE 'C++' NAME 'SearchAndReplace' LIBRARY ReplaceFunction;
Error :
ROLLBACK 3399:  Failure in UDx RPC call InvokeSetExecContext(): Error calling setupExecContext() in User Defined Object [SearchAndReplace] at [/scratch_a/release/12270/vbuild/vertica/OSS/UDxFence/vertica-udx-C++.cpp:301], error code: 0, message: Error happened in dlsym(): [/vertica_data/cpcimdb/v_cpcimdb_node0001_catalog/Libraries/02cc1be367654d3927bcea31f0a8e1e000a000000013c47e/ undefined symbol: getSearchAndReplace]
Anyone can help me?



Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file