Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple count() query caused Internal Error in PhysicalOptimizer (SQLancer) #12077

Closed
2010YOUY01 opened this issue Aug 20, 2024 · 1 comment · Fixed by #12100
Closed

A simple count() query caused Internal Error in PhysicalOptimizer (SQLancer) #12077

2010YOUY01 opened this issue Aug 20, 2024 · 1 comment · Fixed by #12100
Labels
bug Something isn't working

Comments

@2010YOUY01
Copy link
Contributor

Describe the bug

See reproducer in datafusion-cli
(datafusion-cli is compiled from latest main, with cargo run, at commit 574dfeb)

DataFusion CLI v41.0.0
> create table t1(v1 int);

0 row(s) fetched.
Elapsed 0.079 seconds.

> select distinct count() from t1;

CombinePartialFinalAggregate
caused by
Internal error: PhysicalOptimizer rule 'CombinePartialFinalAggregate' failed, due to generate a different schema, original schema: Schema { fields: [Field { name: "count()", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }, new schema: Schema { fields: [Field { name: "count()", data_type: Int64, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }], 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

To Reproduce

No response

Expected behavior

No response

Additional context

Found by SQLancer #11030

@jayzhan211
Copy link
Contributor

I check the query in #11989 , there is no error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants