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 2021/11/25 14:39:38 UTC
[GitHub] [hudi] nsivabalan commented on a change in pull request #4117: [HUDI-2852] Table metadata returns empty for non-exist partition
nsivabalan commented on a change in pull request #4117:
URL: https://github.com/apache/hudi/pull/4117#discussion_r756944980
##########
File path: hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java
##########
@@ -131,6 +132,10 @@ private void initIfNeeded() {
HoodieFileReader baseFileReader = readers.getKey();
HoodieMetadataMergedLogRecordReader logRecordScanner = readers.getRight();
+ if (baseFileReader == null && logRecordScanner == null) {
+ return Collections.emptyList();
Review comment:
shouldn't this return Collections.singletonList(Pair.of(key, Option.empty()))
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org