We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16fc60a commit 9951305Copy full SHA for 9951305
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala
@@ -40,10 +40,11 @@ abstract class LogicalPlan extends QueryPlan[LogicalPlan] {
40
* defaults to the product of children's `sizeInBytes`.
41
*/
42
case class Statistics(
43
- sizeInBytes: Long = childrenStats.map(_.sizeInBytes).product
+ sizeInBytes: Long
44
+ )
45
+ lazy val statistics: Statistics = Statistics(
46
+ sizeInBytes = children.map(_.statistics).map(_.sizeInBytes).product
47
)
- lazy val statistics: Statistics = new Statistics
- lazy val childrenStats = children.map(_.statistics)
48
49
/**
50
* Returns the set of attributes that are referenced by this node
0 commit comments