Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
concretevitamin committed Jul 29, 2014
1 parent e5bcf5b commit 3ba8f3e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ case class SparkLogicalPlan(alreadyPlanned: SparkPlan)
override lazy val sizeInBytes: Long = {
val defaultSum = childrenStats.map(_.sizeInBytes).sum
alreadyPlanned match {
// TODO: Instead of returning a default value here, find a way to return a meaningful
// estimate for RDDs. See PR 1238 for more discussions.
case e: ExistingRdd if defaultSum == 0 => statsDefaultSizeInBytes
case _ => defaultSum
}
Expand Down

0 comments on commit 3ba8f3e

Please sign in to comment.