alamb commented on issue #8724: URL: https://github.com/apache/arrow-datafusion/issues/8724#issuecomment-1881554975
> @alamb Does it make sense to use IntervalArithmetics in this kind of optimizations? It cannot handle strings yet but I don't think it will take much effort. That is a good question @berkaysynnada and I am not sure what the best answer is. I think interval analysis has the most promise in filter analysis (aka proving that boolean expressions can not be `true`). IN that context, I suspect this particular simplification is already covered (as in the interval analysis could alreaady handle it). However, I need to think more about how interval analysis could be used to simplify expressions 🤔 One challenge may be that DataFusion has a split between Logical `Expr` and physical `PhysicalExpr` -- and I believe `Interval` arithmetic is focused mostly on the physical exprs and this simplification happens on the LogicalExpressions -- 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]
