Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Publicly export arrow_string::Predicate and its methods? #9480

@jhorstmann

Description

@jhorstmann

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

I have two usecases where I would like to reuse the logic in Predicate outside of arrow-rs:

  • When processing data in many small batches I'd like to build a Regex only once and reuse that predicate, instead of arrow having to translate the pattern separately for each batch.
  • I have some row-based expression evaluation code that should also support LIKE expressions, it would be great to be able to reuse the same optimized translation into regular expressions as for array evaluation.

Describe the solution you'd like

Making Predicate and its methods public would allow me to solve those usecases

Describe alternatives you've considered

Copying the code into my project would be an alternative.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions