Skip to content

Support Min/Max accumulator for type List #15477

@LiaCastaneda

Description

@LiaCastaneda

Is your feature request related to a problem or challenge?

👋 Min/Max accumulator for List type is missing on datafusion.

I currently get :

Error: Internal error: Min/Max accumulator not implemented for type List(Field { name: "item", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }). This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker

Describe the solution you'd like

The logic is to compare each list and return the list with the biggest element
Example on postgres -> https://www.db-fiddle.com/f/4jyoMCicNSZpjMt4jFYoz5/16502
Error reproducer on Datafusion -> Link to Fiddle

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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