YannByron commented on code in PR #5270:
URL: https://github.com/apache/paimon/pull/5270#discussion_r1991070457


##########
paimon-core/src/main/java/org/apache/paimon/table/source/DataSplit.java:
##########
@@ -141,6 +146,65 @@ public long mergedRowCount() {
         return partialMergedRowCount();
     }
 
+    public boolean valueStatsAvailable() {
+        return rawConvertible
+                && dataDeletionFiles == null
+                && dataFiles.stream()
+                        .allMatch(
+                                f -> {
+                                    SimpleStats stats = f.valueStats();
+                                    return stats != null
+                                            && 
!stats.minValues().equals(EMPTY_ROW)
+                                            && 
!stats.maxValues().equals(EMPTY_ROW);
+                                });
+    }
+
+    public Object minValue(DataField dataField) {
+        Object minValue = null;
+        if (valueStatsAvailable()) {

Review Comment:
   OK~



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