LeafNode
is the base leaf logical operator with no child operators and optional support for statistics for cost-based optimizer and join query planning.
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.
|