comphead opened a new issue, #10688: URL: https://github.com/apache/datafusion/issues/10688
there is some issue with UNION ALL and type derivation ``` > select avg(a) from (select -128.2::float a union all select 32768.3 union all select 27.3); +--------------------+ | AVG(a) | +--------------------+ | 10889.133334350587 | +--------------------+ 1 row(s) fetched. Elapsed 0.011 seconds. > select avg(a) from (select -128.2::float a union all select 32768.3::float union all select 27.3::float); +-------------------+ | AVG(a) | +-------------------+ | 10889.13359451294 | +-------------------+ 1 row(s) fetched. Elapsed 0.011 seconds. ``` I expect those numbers to be the same. And that what duck db does _Originally posted by @comphead in https://github.com/apache/datafusion/pull/10634#pullrequestreview-2081161394_ -- 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