You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "collimarco (via GitHub)" <gi...@apache.org> on 2023/03/31 08:40:10 UTC

[GitHub] [arrow] collimarco opened a new issue, #34819: Add match_substring and related functions to the Ruby gem

collimarco opened a new issue, #34819:
URL: https://github.com/apache/arrow/issues/34819

   ### 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:
   
   ```ruby
   # Find rows that have a status 200 and contain the string example in the message field
   table.slice { |slicer| (slicer['status'] == 200) & (slicer['message'].match_substring 'example') }
   ```
   
   
   
   
   
   ### Component(s)
   
   Ruby


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] collimarco commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "collimarco (via GitHub)" <gi...@apache.org>.
collimarco commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1525325991

   @kou Thanks for adding this. Do you know when the v12 will be available? I cannot find this release on RubyGems


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


[GitHub] [arrow] collimarco commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "collimarco (via GitHub)" <gi...@apache.org>.
collimarco commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1559529204

   @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:
   
   ```
   undefined method `match_substring' for #<Arrow::Slicer::ColumnCondition:... (NoMethodError)
   ```
   
   Any ideas?


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


[GitHub] [arrow] kou commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1525741010

   We're voting for 12.0.0 RC0: https://lists.apache.org/thread/2cnl1nbr8kfcxxq9s9br9b6f4xpmsqz1
   We'll release 12.0.0 after the vote is passed.


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


[GitHub] [arrow] collimarco commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "collimarco (via GitHub)" <gi...@apache.org>.
collimarco commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1559551056

   Oh, sorry, it seems to work properly if I add a question mark at the end: `match_substring?` instead of `match_substring`.


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


[GitHub] [arrow] kou closed issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #34819: [Ruby] Add easy to use API for match_substring and related functions 
URL: https://github.com/apache/arrow/issues/34819


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] heronshoes commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "heronshoes (via GitHub)" <gi...@apache.org>.
heronshoes commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1491941603

   OK, I'll give it a try. Thanks!


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


[GitHub] [arrow] heronshoes commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "heronshoes (via GitHub)" <gi...@apache.org>.
heronshoes commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1526787646

   I'm waiting 12.0.0 too !
   
   In 11.0.0, it took a long time to pass Homebrew :cry:. I hope to get through the gates soon !
   
   https://arrow.apache.org/docs/developers/release.html#post-release-tasks


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


[GitHub] [arrow] kou commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1491603815

   FYI: We can implement `slicer['message'].match_substring('example')` API by improving https://github.com/apache/arrow/blob/68dc40a10bc752d8b577f57976873d087714d486/ruby/red-arrow/lib/arrow/slicer.rb#L109
   
   @heronshoes Are you interested in this?


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


[GitHub] [arrow] heronshoes commented on issue #34819: [Ruby] Add easy to use API for match_substring and related functions

Posted by "heronshoes (via GitHub)" <gi...@apache.org>.
heronshoes commented on issue #34819:
URL: https://github.com/apache/arrow/issues/34819#issuecomment-1499854404

   Thanks!


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