2010YOUY01 opened a new issue, #12077: URL: https://github.com/apache/datafusion/issues/12077
### Describe the bug See reproducer in datafusion-cli (datafusion-cli is compiled from latest main, with cargo run, at commit https://github.com/apache/datafusion/commit/574dfeb29ffe80c0f223fe7551b9ab23f7f29eaa) ``` 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 https://github.com/apache/datafusion/issues/11030 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org