You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/06/06 09:53:47 UTC

[GitHub] [hudi] leesf commented on a change in pull request #1708: [hudi-1000] fix incremental query for COW non-partitioned table no data

leesf commented on a change in pull request #1708:
URL: https://github.com/apache/hudi/pull/1708#discussion_r436255512



##########
File path: hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/HoodieParquetInputFormat.java
##########
@@ -183,7 +183,7 @@ protected HoodieDefaultTimeline filterInstantsTimeline(HoodieDefaultTimeline tim
       return null;
     }
     String incrementalInputPaths = partitionsToList.stream()
-        .map(s -> tableMetaClient.getBasePath() + Path.SEPARATOR + s)
+        .map(s -> "".equals(s) ? tableMetaClient.getBasePath() : tableMetaClient.getBasePath() + Path.SEPARATOR + s)

Review comment:
       `"".equals(s)` would be changed to `StringUtils.isNullOrEmpty`




----------------------------------------------------------------
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:
users@infra.apache.org