YannByron commented on code in PR #2505:
URL: https://github.com/apache/incubator-paimon/pull/2505#discussion_r1426121516


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/PaimonBaseScan.scala:
##########
@@ -72,4 +95,23 @@ abstract class PaimonBaseScan(table: Table, readBuilder: 
ReadBuilder, desc: Stri
     }
     super.supportedCustomMetrics() ++ paimonMetrics
   }
+
+  override def description(): String = {
+    val requiredFieldNameStr = readSchema().map(_.name).mkString(",")
+    val pushedFiltersStr = if (filters.nonEmpty) {
+      ", PushedFilters: " + filters.map(_._1).mkString(",")
+    } else {
+      ""
+    }
+    val runtimeFiltersStr = if (runtimeFilters.nonEmpty) {
+      ", RuntimeFilters: " + runtimeFilters.mkString(",")
+    } else {
+      ""
+    }
+    super.description() + "["
+    "Fields: " + requiredFieldNameStr + pushedFiltersStr +
+      runtimeFiltersStr +

Review Comment:
   They are not always same in case querying nested column or unsupported 
runtime filter.



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