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

TableScan Contract — Relations with Column Pruning

TableScan Contract — Relations with Column Pruning

TableScan is the contract of BaseRelations with support for column pruning, i.e. can eliminate unneeded columns before producing an RDD containing all of its tuples as Row objects.

Table 1. TableScan Contract
Property Description

buildScan

Building distributed data scan with column pruning

In other words, buildScan creates a RDD[Row] to represent a distributed data scan (i.e. scanning over data in a relation).

Used exclusively when DataSourceStrategy execution planning strategy is requested to plan a LogicalRelation with a TableScan.

Note
KafkaRelation is the one and only known implementation of the TableScan Contract in Spark SQL.
赞(0) 打赏
未经允许不得转载:spark技术分享 » TableScan Contract — Relations with Column Pruning
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏