leoyvens opened a new issue, #27404: URL: https://github.com/apache/datafusion/issues/27404
### Describe the bug A valid query gets an plan time CSE error. ### To Reproduce ```sql -- Fails: Internal error: Physical input schema should be the same as the one -- converted from logical input schema. Differences: -- - field nullability at index 0 [__common_expr_1]: (physical) true vs (logical) false. SELECT MIN(b IS TRUE), MAX(b IS TRUE) FROM (VALUES (true), (NULL)) AS t(b); -- Works: the same expression outside an aggregate SELECT b IS TRUE, NOT (b IS TRUE) FROM (VALUES (true), (NULL)) AS t(b); ``` ### Expected behavior Query works. ### Additional context _No response_ ### Willingness to contribute None -- 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]
