danny0405 commented on code in PR #13360:
URL: https://github.com/apache/hudi/pull/13360#discussion_r2126119166
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala:
##########
@@ -841,17 +841,9 @@ class HoodieSparkSqlWriterInternal {
val instantTime = executor.getInstantTime
try {
- val (writeSuccessful, compactionInstant, clusteringInstant) = mode match
{
- case _ if overwriteOperationType == null =>
- val syncHiveSuccess = metaSync(sqlContext.sparkSession, writeConfig,
basePath, df.schema)
- (syncHiveSuccess, HOption.empty().asInstanceOf[HOption[String]],
HOption.empty().asInstanceOf[HOption[String]])
- case _ =>
- try {
- commitAndPerformPostOperations(sqlContext.sparkSession, df.schema,
writeResult, parameters, writeClient, tableConfig, jsc,
- TableInstantInfo(basePath, instantTime,
executor.getCommitActionType, executor.getWriteOperationType), Option.empty)
-
- }
- }
+ val (writeSuccessful, compactionInstant, clusteringInstant) =
commitAndPerformPostOperations(
Review Comment:
is the change because of `overwriteOperationType` never null?
--
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]