KnightChess commented on code in PR #11276:
URL: https://github.com/apache/hudi/pull/11276#discussion_r1611629758


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/ColumnStatsIndexSupport.scala:
##########
@@ -116,8 +116,8 @@ class ColumnStatsIndexSupport(spark: SparkSession,
    * w/in the Metadata Table
    */
   def isIndexAvailable: Boolean = {
-    checkState(metadataConfig.isEnabled, "Metadata Table support has to be 
enabled")
-    
metaClient.getTableConfig.getMetadataPartitions.contains(HoodieTableMetadataUtil.PARTITION_NAME_COLUMN_STATS)
+    metadataConfig.isEnabled &&

Review Comment:
   avoid interrupt index select in 
   ```
   if (isDataSkippingEnabled) {
         for(indexSupport: SparkBaseIndexSupport <- indicesSupport) {
           if (indexSupport.isIndexAvailable) {
             val prunedFileNames = indexSupport.computeCandidateFileNames(this, 
queryFilters, queryReferencedColumns,
               prunedPartitionsAndFileSlices, shouldPushDownFilesFilter)
             if (prunedFileNames.nonEmpty) {
               return Try(prunedFileNames)
             }
           }
         }
       }
   ```



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