alamb commented on PR #3868:
URL:
https://github.com/apache/arrow-datafusion/pull/3868#issuecomment-1284578987
> @alamb would you mind giving an example? Expression boundaries for a
boolean field (like a, or true) would be ExpressionBoundaries { min: true, max:
true, distinct: 1}. And for a filter that does a < 5, we would (or should,
unless I am missing a scenario) not return a result (since they are from
different datatypes, this analysis is strictly for examples where both
datatypes are the same).
I guess I was thinking for an expression like
`a < 5`
If a has boundaries like
```
ExprBoundaries {min: 0, max:10}
```
I would expect the output boundaries for `a < 5` to be
```
ExprBoundaries {min: true, max:true}
```
(which by the way devolves into something that could be used for range based
pruning!)
But the code in this PR seems like it would return
```
ExprBoundaries {min: 0, max:4}
```
Or something
--
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]