SG011 commented on code in PR #13497:
URL: https://github.com/apache/arrow/pull/13497#discussion_r921056939
##########
cpp/src/gandiva/function_registry_string.cc:
##########
@@ -515,7 +515,13 @@ std::vector<NativeFunction> GetStringFunctionRegistry() {
NativeFunction("translate", {}, DataTypeVector{utf8(), utf8(), utf8()},
utf8(),
kResultNullIfNull, "translate_utf8_utf8_utf8",
- NativeFunction::kNeedsContext |
NativeFunction::kCanReturnErrors)};
+ NativeFunction::kNeedsContext |
NativeFunction::kCanReturnErrors),
+
+ NativeFunction("encode", {}, DataTypeVector{utf8(), utf8()}, utf8(),
+ kResultNullIfNull, "gdv_fn_encode",
NativeFunction::kNeedsContext),
+
+ NativeFunction("decode", {}, DataTypeVector{utf8(), utf8()}, utf8(),
+ kResultNullIfNull, "gdv_fn_decode",
NativeFunction::kNeedsContext)};
Review Comment:
Do you know how to convert a utf16 string in char *?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]