cloud-fan commented on PR #40812: URL: https://github.com/apache/spark/pull/40812#issuecomment-1543311678
I see, can we change `def cachedPlan: SparkPlan = cacheBuilder.cachedPlan` to `lazy val cachedPlan: SparkPlan = cacheBuilder.cachedPlan.clone` with comments to explain it? This makes sure that a new instance of `InMemoryRelation` will have a new instance of the physical plan. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
