codope commented on code in PR #10153:
URL: https://github.com/apache/hudi/pull/10153#discussion_r1419865453
##########
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()
+ val metadataConfig = HoodieMetadataConfig.newBuilder().enable(true).build()
+ val metadataFileSystemView =
FileSystemViewManager.createInMemoryFileSystemView(
+ new HoodieSparkEngineContext(spark.sparkContext), metaClient,
metadataConfig)
Review Comment:
yeah the assumption is that MDT is enabled for all features that use indexes.
--
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]