Skip to content

[C++][Python] Implement to/from substrait for Expression #20290

@asfimport

Description

@asfimport

DataFusion has the ability to convert between Substrait expressions and it's own internal expressions. (See: https://github.com/datafusion-contrib/datafusion-substrait .) It would be cool if we had a similar conversion for Acero's Expression class.

This might unlock allowing datafusion-python to easily use PyArrow datasets, by using Substrait as intermediate format to pass down filter and projections from Datafusion into the scanner. (See early draft here: datafusion-contrib/datafusion-python#21.)

One problem is that it's unclear what should be the type of the object in Python representing the Substrait expression. IIUC Python doesn't have direct bindings to the Substrait protobuf.

 

Reporter: Will Jones / @wjones127

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions