Skip to content

Commit 3ba8f3e

Browse files
Add comment.
1 parent e5bcf5b commit 3ba8f3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ case class SparkLogicalPlan(alreadyPlanned: SparkPlan)
8787
override lazy val sizeInBytes: Long = {
8888
val defaultSum = childrenStats.map(_.sizeInBytes).sum
8989
alreadyPlanned match {
90+
// TODO: Instead of returning a default value here, find a way to return a meaningful
91+
// estimate for RDDs. See PR 1238 for more discussions.
9092
case e: ExistingRdd if defaultSum == 0 => statsDefaultSizeInBytes
9193
case _ => defaultSum
9294
}

0 commit comments

Comments
 (0)