ViniciusSouzaRoque commented on code in PR #12391:
URL: https://github.com/apache/arrow/pull/12391#discussion_r925472022


##########
cpp/src/gandiva/precompiled/string_ops.cc:
##########
@@ -3034,4 +3034,50 @@ int32_t instr_utf8(const char* string, int32_t 
string_len, const char* substring
   }
   return 0;
 }
+
+FORCE_INLINE
+int32_t find_in_set_utf8_utf8(int64_t context, const char* to_find, int32_t 
to_find_len,
+                              const char* string_list, int32_t 
string_list_len) {
+  // Return 0 if entry len = 0
+  if (to_find_len == 0 || string_list_len == 0) {

Review Comment:
   @projjal
   I followed the Hive results, **should I return false validity**?
   I found one error in my return...
   If **find_len && list_len == 0** the **return is 1**.



-- 
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]

Reply via email to