Github user jaceklaskowski commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20368#discussion_r163375216
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala
 ---
    @@ -77,7 +77,7 @@ case class InMemoryRelation(
           // Underlying columnar RDD hasn't been materialized, use the stats 
from the plan to cache
           statsOfPlanToCache
         } else {
    -      Statistics(sizeInBytes = batchStats.value.longValue)
    +      Statistics(sizeInBytes = batchStats.value.longValue, hints = 
statsOfPlanToCache.hints)
    --- End diff --
    
    Why don't you simply `statsOfPlanToCache.copy(sizeInBytes = 
batchStats.value.longValue)`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to