Skip to content

[C++] Calculate output type from aggregate to convert arrow aggregate to substrait #32524

@asfimport

Description

@asfimport

I am adding support for mapping to/from Arrow aggregates and Substrait aggregates in ARROW-15582. However, the Arrow-Substrait direction is currently blocked because the Substrait plan needs to know the output type of an aggregate and there is no easy way to determine that from the Arrow information we have.

We should be able to get this information from the function registry but the conversion routines do not have access to the function registry that I can tell. I'm not sure if the best solution is to pass the function registry into ToProto or to add the output type to the aggregate in Arrow.

Reporter: Weston Pace / @westonpace
Assignee: Vibhatha Lakmal Abeykoon / @vibhatha

Note: This issue was originally created as ARROW-17239. 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