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

LeafNode

LeafNode — Base Logical Operator with No Child Operators and Optional Statistics

LeafNode is the base of logical operators that have no child operators.

LeafNode that wants to survive analysis has to define computeStats as it throws an UnsupportedOperationException by default.

Table 1. LeafNodes (Direct Implementations)
LeafNode Description

AnalysisBarrier

DataSourceV2Relation

ExternalRDD

HiveTableRelation

InMemoryRelation

LocalRelation

LogicalRDD

LogicalRelation

OneRowRelation

Range

UnresolvedCatalogRelation

UnresolvedInlineTable

UnresolvedRelation

UnresolvedTableValuedFunction

Computing Statistics — computeStats Method

computeStats simply throws an UnsupportedOperationException.

Note
Logical operators, e.g. ExternalRDD, LogicalRDD and DataSourceV2Relation, or relations, e.g. HadoopFsRelation or BaseRelation, use spark.sql.defaultSizeInBytes internal property for the default estimated size if the statistics could not be computed.
Note
computeStats is used exclusively when SizeInBytesOnlyStatsPlanVisitor uses the default case to compute the size statistic (in bytes) for a logical operator.
赞(0) 打赏
未经允许不得转载:spark技术分享 » LeafNode
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏