andygrove commented on code in PR #5634:
URL: https://github.com/apache/datafusion-comet/pull/5634#discussion_r4104601551


##########
spark/src/main/scala/org/apache/spark/Plugins.scala:
##########
@@ -104,7 +104,9 @@ object CometDriverPlugin extends Logging {
   private[apache] def maybeSetCacheSerializer(
       conf: SparkConf,
       extraConfs: ju.HashMap[String, String]): Unit = {
-    if (conf.getBoolean(CometConf.COMET_EXEC_IN_MEMORY_CACHE_ENABLED.key, 
false)) {
+    if (conf.getBoolean(
+        CometConf.COMET_EXEC_IN_MEMORY_CACHE_ENABLED.key,
+        CometConf.COMET_EXEC_IN_MEMORY_CACHE_ENABLED.defaultValue.get)) {

Review Comment:
   #6202 is fixed by #6208, which is now merged into this branch in 299d38126. 
With both configs on, AQE keeps the operators above the cache scan native after 
the re-plan, so the caveat at the end of my reply no longer applies. The gate 
and the three plugin cases are still to come.
   



##########
spark/src/main/scala/org/apache/comet/CometConf.scala:
##########
@@ -278,7 +278,7 @@ object CometConf extends ShimCometConf {
         "SparkContext, otherwise caching fails as soon as a block is 
serialized, including " +
         "the disk half of the default MEMORY_AND_DISK storage level.")
       .booleanConf
-      .createWithDefault(false)
+      .createWithDefault(true)

Review Comment:
   #6202 is fixed by #6208, which is now merged into this branch in 299d38126. 
Under AQE, an aggregate or join over a cached table now stays native once the 
table-cache stage materializes, so the first case is no longer the normal 
outcome: it takes an operator Comet does not support above the cached scan. 
Option 1 no longer has a #6202 path to cover either, since the operators above 
the stage now convert, or record their own fallback reason, like any other 
operator. The benchmark with AQE on against Spark's own format is next.
   



-- 
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]

Reply via email to