heronshoes commented on code in PR #34902:
URL: https://github.com/apache/arrow/pull/34902#discussion_r1159244818


##########
ruby/red-arrow/lib/arrow/slicer.rb:
##########
@@ -351,5 +356,22 @@ def evaluate
         BooleanArray.new(raw_array)
       end
     end
+
+    class MatchSubstringFamilyCondition < Condition
+      def initialize(function, column, substring, ignore_case)
+        @function = function
+        @column = column
+        @options = MatchSubstringOptions.new
+        @options.pattern = substring
+        @options.ignore_case = ignore_case
+      end
+
+      def evaluate
+        case @function
+        when "match_substring"
+          Function.find("match_substring").execute([@column.data], 
@options).value
+        end

Review Comment:
   Thanks, I will do so. (May some change needed to implement `#!@` or other 
family methods.)



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