Blizzara opened a new issue, #13417: URL: https://github.com/apache/datafusion/issues/13417
### Describe the bug (I'm still working on trying to understand what causes this, but filing already in case someone has seen this before/has ideas.) While running DataFusion on some not-super-complex plan on production data, we're getting this error [Endpoints of an Interval should have the same type](https://github.com/apache/datafusion/blob/a5d0563f53d05f5589df83d163c91910f51020ba/datafusion/expr-common/src/interval_arithmetic.rs#L251)... According to backtrace, it's coming [AnalysisContext::try_from_statistics](https://github.com/apache/datafusion/blob/a5d0563f53d05f5589df83d163c91910f51020ba/datafusion/physical-expr/src/analysis.rs#L69) calling ExprBoundaries::try_from_column which then calls [Interval::try_new](https://github.com/apache/datafusion/blob/main/datafusion/physical-expr/src/analysis.rs#L106). Given that's looking at statics for a column, and comparing the min and max, why would those ever have different datatypes...? ### To Reproduce Reproes on the production data which I unfortunately cannot share; my attempts at reproing with fake inputs haven't succeeded. ### Expected behavior _No response_ ### 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: 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