xumingming commented on code in PR #1643:
URL: https://github.com/apache/auron/pull/1643#discussion_r2570969926


##########
spark-extension/src/main/scala/org/apache/spark/sql/execution/auron/plan/NativeFileSourceScanBase.scala:
##########
@@ -154,4 +152,38 @@ abstract class NativeFileSourceScanBase(basedFileScan: 
FileSourceScanExec)
   }
 
   override protected def doCanonicalize(): SparkPlan = 
basedFileScan.canonicalized
+
+  /**
+   * Match Spark’s DataSourceScanExec verbose output for consistency.
+   * @see
+   *   <a
+   *   
href="https://github.com/apache/spark/blob/65c3d1cb18c45528d8090ac905d87a8dcd779aa7/sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala#L426-L449";>Spark
+   *   DataSourceScanExec</a>
+   */
+  override def verboseStringWithOperatorId(): String = {
+    val metadataStr = basedFileScan.metadata.toSeq.sorted
+      .filterNot {

Review Comment:
   nit: How about call super.verboseStringWithOperatorId and replace the 
nodeName, it might be simpler. The code here seems a little complicated which 
is almost identical to super.



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

Reply via email to