Describe the enhancement requested
In addition to representing full plans, Substrait can also be used to represent expressions (see substrait-io/substrait#405). It would be nice if Dataset and Acero could consume Substrait expressions and use them to specify filters and projections.
I would love to see us expose functions that:
- Receive a Boolean-valued Substrait scalar expression and use it to filter a Dataset
- Receive a list of Substrait scalar expressions and use them to Project a Dataset
- Receive a Boolean-valued Substrait scalar expression and use it to add a Filter node to the ExecPlan
- Receive a list of Substrait scalar expressions and use it to add a Project node to the ExecPlan
Component(s)
C++