While I try to deploying user-defined function developed in C++, I'm getting this error "Tried to copy a 20-byte string to 7-byte VString object; VString is too small". Kindly help me with this. Thanks in advance.
can you post your code?
@skeswani Please find an attached text file
the problem I think is here
this result in the copy of a buf which is 20 bytes into a response that is 7 bytes
change this to
note, putting s '>' sign before the line will help format the code correctly in the forums
20 or more, this is the output return type for the scalar function. basically the scalar function return varchar(20) in this case. but maybe you want to make it varchar(32) for good measure
@skeswani Thanks its work.
Can't find what you're looking for? Search the Vertica Documentation, Knowledge Base, or Blog for more information.