Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19864#discussion_r155223876
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala
 ---
    @@ -37,8 +37,10 @@ object InMemoryRelation {
           batchSize: Int,
           storageLevel: StorageLevel,
           child: SparkPlan,
    -      tableName: Option[String]): InMemoryRelation =
    -    new InMemoryRelation(child.output, useCompression, batchSize, 
storageLevel, child, tableName)()
    +      tableName: Option[String],
    +      stats: Option[Statistics]): InMemoryRelation =
    --- End diff --
    
    also name it `statsOfPlanToCache `


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to