codope commented on code in PR #10153: URL: https://github.com/apache/hudi/pull/10153#discussion_r1423308916
########## hudi-spark-datasource/hudi-spark3.2plus-common/src/main/scala/org/apache/spark/sql/hudi/catalog/HoodieCatalog.scala: ########## @@ -140,7 +157,11 @@ class HoodieCatalog extends DelegatingCatalogExtension properties: util.Map[String, String]): Table = { if (sparkAdapter.isHoodieTable(properties)) { val locUriAndTableType = deduceTableLocationURIAndTableType(ident, properties) - createHoodieTable(ident, schema, locUriAndTableType, partitions, properties, + val partitionTransforms = + if (partitions.isEmpty && isTablePartitioned(getExistingTableIfExists(ident.asTableIdentifier))) + buildPartitionTransforms(spark, locUriAndTableType._1.getPath) + else partitions Review Comment: Sure, I'll refactor it in a subsequent PR. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org