-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ruby] Add easy to use API for match_substring and related functions #34819
Comments
FYI: We can implement arrow/ruby/red-arrow/lib/arrow/slicer.rb Line 109 in 68dc40a
@heronshoes Are you interested in this? |
OK, I'll give it a try. Thanks! |
### Rationale for this change C GLib supported `MatchSubstringOptions` in #34725. This PR will use this and will supply an easy to use API in Ruby binding. ### What changes are included in this PR? - Add a class `Arrow::Slicer::MatchSubstringCondition` - Add a method `#match_substring` in `Arrow::Slicer::ColumnCondition` ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #34819 Lead-authored-by: Hirokazu SUZUKI <heronshoes877@gmail.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Thanks! |
@kou Thanks for adding this. Do you know when the v12 will be available? I cannot find this release on RubyGems |
We're voting for 12.0.0 RC0: https://lists.apache.org/thread/2cnl1nbr8kfcxxq9s9br9b6f4xpmsqz1 |
I'm waiting 12.0.0 too ! In 11.0.0, it took a long time to pass Homebrew 😢. I hope to get through the gates soon ! https://arrow.apache.org/docs/developers/release.html#post-release-tasks |
…pache#34902) ### Rationale for this change C GLib supported `MatchSubstringOptions` in apache#34725. This PR will use this and will supply an easy to use API in Ruby binding. ### What changes are included in this PR? - Add a class `Arrow::Slicer::MatchSubstringCondition` - Add a method `#match_substring` in `Arrow::Slicer::ColumnCondition` ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#34819 Lead-authored-by: Hirokazu SUZUKI <heronshoes877@gmail.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…pache#34902) ### Rationale for this change C GLib supported `MatchSubstringOptions` in apache#34725. This PR will use this and will supply an easy to use API in Ruby binding. ### What changes are included in this PR? - Add a class `Arrow::Slicer::MatchSubstringCondition` - Add a method `#match_substring` in `Arrow::Slicer::ColumnCondition` ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#34819 Lead-authored-by: Hirokazu SUZUKI <heronshoes877@gmail.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…pache#34902) ### Rationale for this change C GLib supported `MatchSubstringOptions` in apache#34725. This PR will use this and will supply an easy to use API in Ruby binding. ### What changes are included in this PR? - Add a class `Arrow::Slicer::MatchSubstringCondition` - Add a method `#match_substring` in `Arrow::Slicer::ColumnCondition` ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#34819 Lead-authored-by: Hirokazu SUZUKI <heronshoes877@gmail.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@kou I am testing the new release v12, however it seems that the code in my original post still doesn't work. I get this error:
Any ideas? |
Oh, sorry, it seems to work properly if I add a question mark at the end: |
Describe the enhancement requested
It would be useful to have access to the string matching functions using the Ruby gem.
These are the functions:
https://arrow.apache.org/docs/cpp/compute.html#containment-tests
For example:
Component(s)
Ruby
The text was updated successfully, but these errors were encountered: