Skip to content

[substrait] add support for Substrait Relation emit kind #12347

@vbarua

Description

@vbarua

Is your feature request related to a problem or challenge?

Substrait relations have the concept of an emit kind, which can either be:

  • Direct: which is the default order and outputs fields based on the Direct Output Order specified in the Substrait spec.
  • Emit: which includes a list of the outputs to include based on the Direct output ordering.

Currently, DataFusion ignores the emit_kind field entirely, which can impact the correctness of Substrait plan execution.

For more details see https://substrait.io/relations/basics/#emit-output-ordering

Describe the solution you'd like

DataFusion should handle both Direct and Emit emit kinds.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions