maropu commented on a change in pull request #23545: [SPARK-25196][SQL][WIP]
Extends Analyze commands for cached tables
URL: https://github.com/apache/spark/pull/23545#discussion_r247759661
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala
##########
@@ -163,7 +163,7 @@ case class InMemoryRelation(
output: Seq[Attribute],
@transient cacheBuilder: CachedRDDBuilder,
override val outputOrdering: Seq[SortOrder])(
- statsOfPlanToCache: Statistics)
+ var statsOfPlanToCache: Statistics)
Review comment:
Yea, I know and I used `var` here based on `CachedRDDBuilder`;
https://github.com/apache/spark/blob/255daf03629fe18142dca751fe5c305e353befcd/sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala#L52
I remember that, although I tried in a different way before, the fix became
more complicated... But, you're right; if we can, it's the best to do that.
I'll keep looking for another solution...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]