voonhous commented on code in PR #19849:
URL: https://github.com/apache/hudi/pull/19849#discussion_r3951110003


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala:
##########
@@ -252,19 +241,7 @@ abstract class HoodieBaseRelation(val sqlContext: 
SQLContext,
     HoodieFileIndex(sparkSession, metaClient, Some(tableStructSchema), 
optParams,
       FileStatusCache.getOrCreate(sparkSession), shouldIncludeLogFiles())
 
-  lazy val tableState: HoodieTableState = {
-    val recordMergerImpls = 
optParams.get(HoodieWriteConfig.RECORD_MERGE_IMPL_CLASSES.key()).map(impls => 
ConfigUtils.split2List(impls).asScala.toList).getOrElse(List.empty)
-    // Subset of the state of table's configuration as of at the time of the 
query
-    HoodieTableState(tablePath = basePath.toString,
-      latestCommitTimestamp = queryTimestamp,
-      recordKeyField = recordKeyField,
-      orderingFields = orderingFields,
-      usesVirtualKeys = !tableConfig.populateMetaFields(),
-      metadataConfig = fileIndex.getMetadataConfig,

Review Comment:
   Pushed in `d06ca59`: `@Getter(AccessLevel.PROTECTED)` on `metadataConfig`, 
matching `partitionColumns` and `queryPaths` beside it, and 
`testGetMetadataConfigReturnsFieldValue` removed along with its two now-unused 
imports. Re-checked the whole repo before narrowing it; the remaining 
`getMetadataConfig()` hits are `HoodieWriteConfig` and 
`HoodieMetadataValidationContext`, unrelated classes.
   
   Leaving the thread open for one last bit: this makes a second source- and 
binary-compatibility change, so could the Impact section list it next to the 
`HoodieTableState` removal? Happy for you to resolve once the body is updated.
   



-- 
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]

Reply via email to