Replies: 2 comments 2 replies
-
@rui-mo Rui, thank you for the question.
Here, a recommendation would be to further analyze the filter and check whether y and z are > x. If they are, then the filter can be simplified to just |
Beta Was this translation helpful? Give feedback.
-
@mbasmanova Masha, thanks for your valuable reply. Does this mean we can try to find the narrowest filter condititon for one field and use a single range to push it down? If so, looks like an optimizer needs to be implemented to narrow down mutiple conditions and returns the strictest one. Do you think this optimization should be conducted during Substrait plan generation (that means in Gluten), or in Velox Substrait-to-Velox conversion? |
Beta Was this translation helpful? Give feedback.
-
Hi,
We noticed there were two levels of filters in HiveTableHandle (link), the subfieldFilters and remainingFilter. For subfieldFilters, there were several kinds of ranges in Filter.h. My question is about MultiRange.
MultiRange represents a combination of range filters with OR semantics, therefore in some cases, not all conditions can be pushed down and certain logics were added to distinguish between them in our usage.
For example, in below conditions, if IN can be represented with
BigintValues
, and GreaterThan can be represented withBigintRange
, then a multiRange of AND sematics is needed to push down both of them.Currently, we have special logics to separate them and push down part of them, eg., only pushing down IN and leaving GreaterThan to the remaining filter. We are wondering if there is any plan for a MultiRange with AND sematics. Or do you have any suggestion for us? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions