codope commented on code in PR #10153: URL: https://github.com/apache/hudi/pull/10153#discussion_r1419868357
########## hudi-spark-datasource/hudi-spark3.2plus-common/src/main/scala/org/apache/spark/sql/hudi/catalog/HoodieCatalog.scala: ########## @@ -369,4 +378,28 @@ object HoodieCatalog { (identityCols, bucketSpec) } + + def buildPartitionTransforms(spark: SparkSession, + basePath: String): Array[Transform] = { + val metaClient = HoodieTableMetaClient.builder() + .setConf(spark.sessionState.newHadoopConf()) + .setBasePath(basePath) + .build() Review Comment: From debugging the tests, I see that this is called just once when the table is loaded. I think this should be fine. Even in other query engines, we build metaclient once per query. -- 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