augustoasilva commented on a change in pull request #11166:
URL: https://github.com/apache/arrow/pull/11166#discussion_r743570328



##########
File path: cpp/src/gandiva/function_registry_string.cc
##########
@@ -88,6 +88,23 @@ std::vector<NativeFunction> GetStringFunctionRegistry() {
                      "gdv_fn_initcap_utf8",
                      NativeFunction::kNeedsContext | 
NativeFunction::kCanReturnErrors),
 
+      NativeFunction("elt", {}, DataTypeVector{int32(), utf8(), utf8()}, 
utf8(),
+                     kResultNullIfNull, "gdv_fn_elt_int32_utf8_utf8",
+                     NativeFunction::kNeedsContext),
+
+      NativeFunction("elt", {}, DataTypeVector{int32(), utf8(), utf8(), 
utf8()}, utf8(),
+                     kResultNullIfNull, "gdv_fn_elt_int32_utf8_utf8_utf8",

Review comment:
       Ok, I've looked to see an example of NullInternal, and it makes sense 
now.




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to