wombatu-kun commented on code in PR #10715:
URL: https://github.com/apache/hudi/pull/10715#discussion_r1500706025
##########
hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/internal/DataSourceInternalWriterHelper.java:
##########
@@ -66,13 +66,11 @@ public DataSourceInternalWriterHelper(String instantTime,
HoodieWriteConfig writ
this.extraMetadata = extraMetadata;
this.writeClient = new SparkRDDWriteClient<>(new
HoodieSparkEngineContext(new JavaSparkContext(sparkSession.sparkContext())),
writeConfig);
this.writeClient.setOperationType(operationType);
- this.writeClient.startCommitWithTime(instantTime);
this.writeClient.initTable(operationType, Option.of(instantTime));
Review Comment:
Definitely, initTable does not require the requested commit file to be
existed. That's why i moved invocation of startCommitWithTime out of
constructor right to that place, where it is needed (first statement of
createInflightCommit method).
--
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]