lriggs commented on code in PR #49035:
URL: https://github.com/apache/arrow/pull/49035#discussion_r2733485360
##########
cpp/src/gandiva/precompiled/string_ops.cc:
##########
@@ -2252,6 +2252,11 @@ const char* right_utf8_int32(gdv_int64 context, const
char* text, gdv_int32 text
FORCE_INLINE
const char* binary_string(gdv_int64 context, const char* text, gdv_int32
text_len,
gdv_int32* out_len) {
+ if (text_len == 0) {
+ *out_len = 0;
+ return "";
Review Comment:
It returns null, the same as Java.
--
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]