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] {
3131 * Estimates of various statistics. The default estimation logic simply sums up the corresponding
3232 * statistic produced by the children. To override this behavior, override `statistics` and
3333 * 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`.
3437 */
3538 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- */
4039 sizeInBytes : Long = childrenStats.map(_.sizeInBytes).product
4140 )
4241 lazy val statistics : Statistics = new Statistics
@@ -108,7 +107,7 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] {
108107abstract class LeafNode extends LogicalPlan with trees.LeafNode [LogicalPlan ] {
109108 self : Product =>
110109
111- override lazy val statistics = Statistics (numTuples = 1L , sizeInBytes = 1L )
110+ override lazy val statistics = Statistics (sizeInBytes = 1L )
112111
113112 // Leaf nodes by definition cannot reference any input attributes.
114113 override def references = Set .empty
You can’t perform that action at this time.
0 commit comments