cloud-fan commented on a change in pull request #26813: [SPARK-30188][SQL][WIP]
Enable adaptive query execution by default
URL: https://github.com/apache/spark/pull/26813#discussion_r363599891
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/CacheManager.scala
##########
@@ -80,12 +81,19 @@ class CacheManager extends Logging {
} else {
val sparkSession = query.sparkSession
val qe = sparkSession.sessionState.executePlan(planToCache)
- val inMemoryRelation = InMemoryRelation(
- sparkSession.sessionState.conf.useCompression,
- sparkSession.sessionState.conf.columnBatchSize, storageLevel,
- qe.executedPlan,
- tableName,
- optimizedPlan = qe.optimizedPlan)
+ val originalValue =
sparkSession.sessionState.conf.getConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED)
+ val inMemoryRelation = try {
+
sparkSession.sessionState.conf.setConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED,
false)
Review comment:
can we add a comment to explain why disable it? e.g. to avoid changing the
output partitioning
----------------------------------------------------------------
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.
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]