zhangyue19921010 commented on code in PR #13017:
URL: https://github.com/apache/hudi/pull/13017#discussion_r2011363184
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala:
##########
@@ -333,6 +335,19 @@ class HoodieSparkSqlWriterInternal {
.initTable(HadoopFSUtils.getStorageConfWithCopy(sparkContext.hadoopConfiguration),
path)
}
+ // take care of partition level bucket index which is simple bucket index
+ if (parameters.contains(HoodieIndexConfig.INDEX_TYPE.key)
+ && parameters(HoodieIndexConfig.INDEX_TYPE.key) ==
HoodieIndex.IndexType.BUCKET.name
+ &&
(!parameters.contains(HoodieIndexConfig.BUCKET_INDEX_ENGINE_TYPE.key)
Review Comment:
Simplified judgment logic And add related UT
--
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]