schnappi17 commented on code in PR #1735:
URL: https://github.com/apache/incubator-paimon/pull/1735#discussion_r1289968878


##########
paimon-core/src/main/java/org/apache/paimon/table/source/DataSplit.java:
##########
@@ -75,6 +77,11 @@ public boolean isStreaming() {
         return isStreaming;
     }
 
+    public Optional<DataFileMeta> getLatestFile() {
+        return this.dataFiles.stream()
+                .max(Comparator.comparingLong(f -> 
f.creationTime().getMillisecond()));

Review Comment:
   I think it'll bring more calculation that is meanless. Each comparation will 
calculate the localtime to epoch.



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