Skip to content

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

Closed

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

Activity

  1. added theissue type on Aug 3, 2026
  2. alamb commented on Aug 8, 2026

    @alamb
    Contributor

    This looks like a regression to me so adding to the release

    FYI @2010YOUY01 perhaps this is related to the aggregate refactor

  3. removed theissue type on Aug 8, 2026
  4. added
    regressionSomething that used to work no longer does
    on Aug 8, 2026
  5. changed the title [-]`GroupedHashAggregateStream::emit` throws ArrowError: column types must match schema types[/-] [+]Fix `GroupedHashAggregateStream::emit` throws ArrowError: column types must match schema types[/+] on Aug 10, 2026
  6. changed the title [-]Fix `GroupedHashAggregateStream::emit` throws ArrowError: column types must match schema types[/-] [+]`GroupedHashAggregateStream::emit` throws ArrowError: column types must match schema types[/+] on Aug 10, 2026
  7. alamb commented on Aug 11, 2026

    @alamb
    Contributor

    Update it is not clear to me that this is a regression or not. I am working on a reproducer to be sure

  8. alamb commented on Aug 11, 2026

    @alamb
    Contributor

    I made a reproducer here:

  9. removed
    regressionSomething that used to work no longer does
    on Aug 11, 2026
  10. added a commit that references this issue on Aug 24, 2026
    2326917
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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