appletreeisyellow commented on issue #9171:
URL:
https://github.com/apache/arrow-datafusion/issues/9171#issuecomment-1942818905
I think case expression can be wrapped around the `OR` clause as well. For
example, `x = 8 OR x < 0` can be rewrite into
```
CASE
WHEN x_null_count = x_row_count THEN false
ELSE (x_min <= 8 AND 8 <= x_max) OR x_max < 0
END
```
If we know that a container has column `x` to be entirely `NULL`, this
container can be skipped, regardless the result of `OR` clause is true or false.
--
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]