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


##########
paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java:
##########
@@ -213,6 +214,14 @@ public Timestamp creationTime() {
         return creationTime;
     }
 
+    public long convertCreationTimeToEpoch() {

Review Comment:
   `creationTimeEpochMillis`



##########
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:
   Why not return max `creationTimeEpochMillis` directly?



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