yanghua commented on a change in pull request #1522:
URL: https://github.com/apache/incubator-hudi/pull/1522#discussion_r416721786



##########
File path: 
hudi-cli/src/main/java/org/apache/hudi/cli/commands/HoodieLogFileCommand.java
##########
@@ -173,7 +176,11 @@ public String showLogFileRecords(
     HoodieTableMetaClient client = HoodieCLI.getTableMetaClient();
     FileSystem fs = client.getFs();
     List<String> logFilePaths = Arrays.stream(fs.globStatus(new 
Path(logFilePathPattern)))
-        .map(status -> 
status.getPath().toString()).collect(Collectors.toList());
+        .map(status -> 
status.getPath().toString()).sorted(Comparator.reverseOrder())

Review comment:
       Got it! Github hid the unchanged part. I thought you only accessed the 
`.size()` method.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to