PredicateHelper¶
isLikelySelective¶
isLikelySelective(
e: Expression): Boolean
isLikelySelective
is true
(enabled) for the following Expressions:
Not
with an Expression that is likely to be selectiveAnd
with either Expression likely to be selectiveOr
with both Expressions likely to be selectiveStringRegexExpression
Like
RLike
BinaryComparison
EqualNullSafe
EqualTo
GreaterThan
GreaterThanOrEqual
LessThan
LessThanOrEqual
- In
- InSet
StringPredicate
Contains
EndsWith
StartsWith
BinaryPredicate
MultiLikeBase
LikeAll
NotLikeAll
LikeAny
NotLikeAny
isLikelySelective
is used when:
InjectRuntimeFilter
logical optimization is requested to isSelectiveFilterOverScanPartitionPruning
logical optimization is requested to hasSelectivePredicate