You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "heronshoes (via GitHub)" <gi...@apache.org> on 2023/04/08 01:43:52 UTC
[GitHub] [arrow] heronshoes commented on a diff in pull request #34952: GH-34951: [Ruby] Add methods using MatchSubStringFamilyCondition
heronshoes commented on code in PR #34952:
URL: https://github.com/apache/arrow/pull/34952#discussion_r1161043630
##########
ruby/red-arrow/test/test-slicer.rb:
##########
@@ -528,5 +540,40 @@ def setup
2 window
TABLE
end
+
+ test("match_like") do
+ sliced_table = @table.slice do |slicer|
+ slicer.string.match_like("_rr%")
+ end
+ assert_equal(<<~TABLE, sliced_table.to_s)
+ string
+0 array
+1 Arrow
+2 (null)
+ TABLE
+ end
+
+ test("match_substring_regex") do
+ sliced_table = @table.slice do |slicer|
+ slicer.string.match_substring_regex("[dr]ow")
Review Comment:
Yes we can do that!
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org