Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.23 KB

spark-sql-LogicalPlan-LeafNode.adoc

File metadata and controls

16 lines (10 loc) · 1.23 KB

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

LeafNode is the base leaf logical operator with no child operators and optional support for statistics for cost-based optimizer and join query planning.

Computing Statistics — computeStats Method

computeStats(): Statistics

computeStats simply reports 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.