CTTY commented on code in PR #6882:
URL: https://github.com/apache/hudi/pull/6882#discussion_r989548780


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieCreateHandle.java:
##########
@@ -92,19 +92,18 @@ public HoodieCreateHandle(HoodieWriteConfig config, String 
instantTime, HoodieTa
     writeStatus.setFileId(fileId);
     writeStatus.setPartitionPath(partitionPath);
     writeStatus.setStat(new HoodieWriteStat());
-
-    this.path = makeNewPath(partitionPath);
+    this.physicalPath = makeNewPhysicalPath(partitionPath);
 
     try {
       HoodiePartitionMetadata partitionMetadata = new 
HoodiePartitionMetadata(fs, instantTime,
           new Path(config.getBasePath()), 
FSUtils.getPartitionPath(config.getBasePath(), partitionPath),
           hoodieTable.getPartitionMetafileFormat());
       partitionMetadata.trySave(getPartitionId());
       createMarkerFile(partitionPath, 
FSUtils.makeBaseFileName(this.instantTime, this.writeToken, this.fileId, 
hoodieTable.getBaseFileExtension()));
-      this.fileWriter = HoodieFileWriterFactory.getFileWriter(instantTime, 
path, hoodieTable, config,
+      this.fileWriter = HoodieFileWriterFactory.getFileWriter(instantTime, 
physicalPath, hoodieTable, config,

Review Comment:
   Physical path would be used to initialize file writer



-- 
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]

Reply via email to