关注 spark技术分享,
撸spark源码 玩spark最佳实践

Data Source Filter Predicate (For Filter Pushdown)

Data Source Filter Predicate (For Filter Pushdown)

Filter is the contract for filter predicates that can be pushed down to a relation (aka data source).

Filter is used when:

Table 1. Filter Contract
Method Description

references

Column references, i.e. list of column names that are referenced by a filter

Used when:

Table 2. Filters
Filter Description

And

EqualNullSafe

EqualTo

GreaterThan

GreaterThanOrEqual

In

IsNotNull

IsNull

LessThan

LessThanOrEqual

Not

Or

StringContains

StringEndsWith

StringStartsWith

Finding Column References in Any Value — findReferences Method

findReferences takes the references from the value filter is it is one or returns an empty array.

Note
findReferences is used when EqualTo, EqualNullSafe, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual and In filters are requested for their column references.
赞(0) 打赏
未经允许不得转载:spark技术分享 » Data Source Filter Predicate (For Filter Pushdown)
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏