Skip to content

GroupedHashAggregateStream::emit throws ArrowError: column types must match schema types #24069

Description

@hsiang-c

Describe the bug

While testing DataFusion Comet, we found that DataFusion throws an exception:

ArrowError: column types must match schema types,
  expected List(Struct("colA": Boolean, ...))
  but found  List(Struct("colA": non-null Boolean, ...))  at column index 1

and the corresponding call stack is GroupedHashAggregateStream::emit()spill()try_update_memory_reservation()

Also raised the issue in Comet: apache/datafusion-comet#5239

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions