1
0

[HUDI-1000] Fix incremental query for COW non-partitioned table with no data (#1708)

This commit is contained in:
hj2016
2020-06-08 15:34:42 +08:00
committed by GitHub
parent e9cab67b80
commit e0a5e0d343

View File

@@ -183,7 +183,7 @@ public class HoodieParquetInputFormat extends MapredParquetInputFormat implement
return null;
}
String incrementalInputPaths = partitionsToList.stream()
.map(s -> tableMetaClient.getBasePath() + Path.SEPARATOR + s)
.map(s -> StringUtils.isNullOrEmpty(s) ? tableMetaClient.getBasePath() : tableMetaClient.getBasePath() + Path.SEPARATOR + s)
.filter(s -> {
/*
* Ensure to return only results from the original input path that has incremental changes