viirya commented on code in PR #38558:
URL: https://github.com/apache/spark/pull/38558#discussion_r1018721730
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryTableScanExec.scala:
##########
@@ -111,10 +112,15 @@ case class InMemoryTableScanExec(
override def output: Seq[Attribute] = attributes
+ private def cachedPlan = relation.cachedPlan match {
+ case adaptive: AdaptiveSparkPlanExec if adaptive.isFinalized =>
adaptive.executedPlan
+ case other => other
Review Comment:
So this only affects output partitioning and ordering after the cached
relation is materialized? And if the query plan refers this cached plan is
already finished with planning but not executed yet, it will still use old
partitioning and ordering, right?
--
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]