codope commented on code in PR #9567:
URL: https://github.com/apache/hudi/pull/9567#discussion_r1398098171
##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/HoodieCopyOnWriteTableInputFormat.java:
##########
@@ -241,31 +246,83 @@ private List<FileStatus>
listStatusForSnapshotMode(JobConf job,
boolean shouldIncludePendingCommits =
HoodieHiveUtils.shouldIncludePendingCommits(job,
tableMetaClient.getTableConfig().getTableName());
- HiveHoodieTableFileIndex fileIndex =
- new HiveHoodieTableFileIndex(
- engineContext,
- tableMetaClient,
- props,
- HoodieTableQueryType.SNAPSHOT,
- partitionPaths,
- queryCommitInstant,
- shouldIncludePendingCommits);
-
- Map<String, List<FileSlice>> partitionedFileSlices =
fileIndex.listFileSlices();
-
- targetFiles.addAll(
- partitionedFileSlices.values()
- .stream()
- .flatMap(Collection::stream)
- .filter(fileSlice -> checkIfValidFileSlice(fileSlice))
- .map(fileSlice -> createFileStatusUnchecked(fileSlice,
fileIndex, tableMetaClient))
- .collect(Collectors.toList())
- );
+ if (conf.getBoolean(ENABLE.key(), ENABLE.defaultValue()) &&
HoodieTableMetadataUtil.isFilesPartitionAvailable(tableMetaClient)) {
Review Comment:
Sorry, I think I overwrote your change while rebasing. I had to rebase due
to some flaky test fix. I have added the commit back -
https://github.com/aajisaka/hudi/commit/dfdb6c1c8457e96a5d827f41599f84ad36d0cfbe
--
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]