Skip to content

Error Unexpected accumulator state List([NULL]) in COUNT(distinct ..) query #1623

@alamb

Description

@alamb

Describe the bug
A query returns this error:

ArrowError(ExternalError(Internal("Unexpected accumulator state List([NULL])")))

To Reproduce
Download and extract data.zip

cargo run --bin datafusion-cli
    Finished dev [unoptimized + debuginfo] target(s) in 0.93s
     Running `target/debug/datafusion-cli`
DataFusion CLI v5.1.0

❯ create external table stops stored as parquet location '2021-11.parquet';
0 rows in set. Query took 0.010 seconds.
❯ select count(*), count(distinct stop_name), trip_tid  from stops group by trip_tid limit 10;
ArrowError(ExternalError(Internal("Unexpected accumulator state List([NULL])")))

Expected behavior
A result

Additional context
@matthewmturner and @jhorstmann helped me discover this as part of the Rust syncup today 🤣

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