eejbyfeldt opened a new issue, #13190: URL: https://github.com/apache/datafusion/issues/13190
### Describe the bug Some Exprs in DataFusion (mostly ScalarFunctions) are defined nullable but when being constant evaluated end up producing a value, so the new Expr::Literal is no longer nullable. This can in some cases lead to a schema change and trigger physical/logical schema miss match check added in https://github.com/apache/datafusion/pull/11989 ### To Reproduce Running the following query in datafusion cli ``` > SELECT combined FROM ( SELECT concat('A', 'B') AS combined UNION ALL SELECT concat('A', 'B') AS combined ) GROUP BY combined; Internal error: Physical input schema should be the same as the one converted from logical input schema.. 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 ``` ### Expected behavior The query should produce a result without errors. ### Additional context _No response_ -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
