Zouxxyy commented on code in PR #6786:
URL: https://github.com/apache/paimon/pull/6786#discussion_r2605503407


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/PaimonBaseScan.scala:
##########
@@ -121,6 +121,23 @@ abstract class PaimonBaseScan(
     paimonMetricsRegistry.buildSparkScanMetrics()
   }
 
+  private def ensureNoFullScan(): Unit = {
+    if (OptionUtils.readAllowFullScan()) {
+      return
+    }
+
+    table match {
+      case t: FileStoreTable if !t.partitionKeys().isEmpty =>
+        val skippedFiles = 
paimonMetricsRegistry.buildSparkScanMetrics().collectFirst {
+          case m: PaimonSkippedTableFilesTaskMetric => m.value

Review Comment:
   Any file skipped is not considered a full scan, we are not currently 
distinguishing between partitioned and non-partitioned filtering.



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