comphead commented on code in PR #3781:
URL: https://github.com/apache/datafusion-comet/pull/3781#discussion_r3017989461


##########
spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala:
##########
@@ -168,8 +168,13 @@ case class CometScanRule(session: SparkSession)
 
         COMET_NATIVE_SCAN_IMPL.get() match {
           case SCAN_AUTO =>
-            // TODO add support for native_datafusion in the future
-            nativeIcebergCompatScan(session, scanExec, r, hadoopConf)
+            nativeDataFusionScan(plan, session, scanExec, r, hadoopConf)
+              .orElse {
+                // clear explain info tags from the failed nativeDataFusionScan
+                // attempt so they don't leak into the fallback path
+                scanExec.unsetTagValue(CometExplainInfo.EXTENSION_INFO)

Review Comment:
   just wondering why we don't unset tags for failed in variants below? 



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