Skip to content

[C++] Define abstract API for filtering Arrow streams (e.g. predicate evaluation) #16629

Closed

Description

@asfimport

It would be useful to be able to apply analytic predicates to an Arrow stream in a composable way. As soon as we are able to compute some simple predicates on in-memory Arrow data, we could define our first version of this

Reporter: Wes McKinney / @wesm

Related issues:

Note: This issue was originally created as ARROW-1036. Please see the migration documentation for further details.

Activity

  1. asfimport commented on May 16, 2017

    @asfimport
    Author

    Anthony Fox:
    This is quite similar to a project the GeoMesa team has been working on.

    The GeoMesa project has started to put together a SQL-like API over Arrow files in javascript for in-browser querying and visualization. We have defined a class called ArrowDataSet that wraps an Arrow file and exposes query and countBy/groupBy methods. The queries are defined using a set of simple predicate expressions (And, Or, Equals, LTEquals,During, etc etc) with the idea of adding spatial predicates eventually (Contains, Intersects, Overlaps). The query is received by the ArrowDataSet and a query execution plan is produced. The query execution plan has the usual operators (Scan, Filter, Project, HashGroupBy) as well as optimized Filters for dictionary encoded values. We are also planning on having a primary sort key that is hinted through the Arrow column meta-data and appropriate optimizations with additional operators like PrimarySortKeyScan. This will help with seeks when there's a predicate on the primary sort key. For instance, if the primary sort key is date and there's a query predicate using During on a start and end date, then the execution plan will use PrimarySortKeyScan to efficiently skip batches till it reaches records that pass the predicate.

    I'd be interested in how this can be standardized across the languages supported by Arrow.

  2. asfimport commented on May 16, 2017

    @asfimport
    Author

    Wes McKinney / @wesm:
    This sounds really cool. Would be great to collect as much of the client-side analytics in the Arrow JS implementation. When you are ready, it would be great to have you all write a blog post for the Arrow website showing off this use csae

  3. asfimport commented on May 17, 2017

    @asfimport
    Author

    Anthony Fox:
    @wesm We'd be happy to write a blog post. We need to get it hooked up into a client-side mapping client like OpenLayers or Leaflet so there are compelling screencaps to go along with the post.

  4. asfimport commented on May 19, 2017

    @asfimport
    Author

    Wes McKinney / @wesm:
    Sure, whenever you're ready, feel free to go for it (you can make a PR into the arrow/site directory)

  5. asfimport commented on Nov 22, 2018

    @asfimport
    Author

    Wes McKinney / @wesm:
    Now that we can use Gandiva to generate simple predicates, it might be a good idea to implement a simple table-valued filter node

  6. asfimport commented on Aug 21, 2019

    @asfimport
    Author

    Wes McKinney / @wesm:
    cc @bkietz as you think about application of filters to record batches as a post-processing step

  7. asfimport commented on Aug 26, 2019

    @asfimport
    Author
  8. asfimport commented on Nov 11, 2019

    @asfimport
    Author

    Neal Richardson / @nealrichardson:
    Did ARROW-6243 cover this, or is there something else to do?

  9. asfimport commented on Nov 12, 2019

    @asfimport
    Author
  10. asfimport commented on Aug 27, 2022

    @asfimport
    Author

    Todd Farmer / @toddfarmer:
    Transitioning issue from Resolved to Closed to based on resolution field value.

  11. added this to the 0.16.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions