File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] {
31
31
* Estimates of various statistics. The default estimation logic simply sums up the corresponding
32
32
* statistic produced by the children. To override this behavior, override `statistics` and
33
33
* assign it a overriden version of `Statistics`.
34
+ *
35
+ * @param sizeInBytes Physical size in bytes. For leaf operators this defaults to 1, otherwise it
36
+ * defaults to the product of children's `sizeInBytes`.
34
37
*/
35
38
case class Statistics (
36
- /**
37
- * Physical size in bytes. For leaf operators this defaults to 1, otherwise it is set to the
38
- * product of children's `sizeInBytes`.
39
- */
40
39
sizeInBytes : Long = childrenStats.map(_.sizeInBytes).product
41
40
)
42
41
lazy val statistics : Statistics = new Statistics
@@ -108,7 +107,7 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] {
108
107
abstract class LeafNode extends LogicalPlan with trees.LeafNode [LogicalPlan ] {
109
108
self : Product =>
110
109
111
- override lazy val statistics = Statistics (numTuples = 1L , sizeInBytes = 1L )
110
+ override lazy val statistics = Statistics (sizeInBytes = 1L )
112
111
113
112
// Leaf nodes by definition cannot reference any input attributes.
114
113
override def references = Set .empty
You can’t perform that action at this time.
0 commit comments