Skip to content
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

ARROW-7195: [Ruby] Improve #filter, #take, and #is_in #5851

Closed

Conversation

shiro615
Copy link
Contributor

This PR add support for the argument of the following functions.

  • Arrow::Array#is_in(Array, ChunkedArray)
  • Arrow::Array#filter(Array)
  • Arrow::Array#take(Array, ChunkedArray)
  • Arrow::ChunkedArray#filter(Array, ChunkedArray)
  • Arrow::ChunkedArray#take(Array, ChunkedArray)
  • Arrow::Table#take(Array, ChunkedArray)

@github-actions
Copy link

@shiro615 shiro615 force-pushed the ruby-improve-filter-take-is-in branch from d6464a5 to e30406d Compare November 17, 2019 17:35
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Thanks. I've pushed some changes:

  • Use "generic" instead of "array" for generic method.
  • Add support for Arrow::Array#filter(Arrow::ChunkedArray). (It should be implemented in C++ in the future.)
  • Move all requires for Red Arrow to loader.rb.
  • Add support for #is_in(Array) for parameterized typed array such as Arrow::TimestampArray.

@shiro615 Could you check my changes?

@shiro615
Copy link
Contributor Author

Thank you so much. I'll merge this.

@shiro615 shiro615 closed this in a313fea Nov 18, 2019
@shiro615 shiro615 deleted the ruby-improve-filter-take-is-in branch November 18, 2019 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants