[HUDI-301] fix path error when update a non-partition MOR table
This commit is contained in:
committed by
Balaji Varadarajan
parent
12523c379f
commit
1c09f5b055
@@ -140,7 +140,8 @@ public class HoodieAppendHandle<T extends HoodieRecordPayload> extends HoodieWri
|
||||
throw new HoodieUpsertException("Failed to initialize HoodieAppendHandle for FileId: " + fileId + " on commit "
|
||||
+ instantTime + " on HDFS path " + hoodieTable.getMetaClient().getBasePath() + partitionPath, e);
|
||||
}
|
||||
Path path = new Path(partitionPath, writer.getLogFile().getFileName());
|
||||
Path path = partitionPath.length() == 0 ? new Path(writer.getLogFile().getFileName())
|
||||
: new Path(partitionPath, writer.getLogFile().getFileName());
|
||||
writeStatus.getStat().setPath(path.toString());
|
||||
doInit = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user