nsivabalan commented on code in PR #12888:
URL: https://github.com/apache/hudi/pull/12888#discussion_r1976795299


##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/utils/HoodieInputFormatUtils.java:
##########
@@ -527,19 +529,39 @@ public static String getTableBasePath(InputSplit split, 
JobConf jobConf) throws
       return realtimeSplit.getBasePath();
     } else {
       Path inputPath = ((FileSplit) split).getPath();
-      FileSystem fs = inputPath.getFileSystem(jobConf);
-      HoodieStorage storage = new HoodieHadoopStorage(fs);
-      Option<StoragePath> tablePath = TablePathUtils.getTablePath(storage, 
convertToStoragePath(inputPath));
-      return tablePath.get().toString();
+      return getTablePath(jobConf, inputPath);
     }
   }
 
+  private static String getTablePath(JobConf jobConf, Path inputPath) throws 
IOException {
+    FileSystem fs = inputPath.getFileSystem(jobConf);
+    HoodieStorage storage = new HoodieHadoopStorage(fs);
+    Option<StoragePath> tablePath = TablePathUtils.getTablePath(storage, 
convertToStoragePath(inputPath));
+    return tablePath.get().toString();
+  }
+
   /**
    * `schema.on.read` and skip merge not implemented
    */
-  public static boolean shouldUseFilegroupReader(final JobConf jobConf, final 
InputSplit split) {
-    return 
jobConf.getBoolean(HoodieReaderConfig.FILE_GROUP_READER_ENABLED.key(), 
HoodieReaderConfig.FILE_GROUP_READER_ENABLED.defaultValue())
-        && 
!jobConf.getBoolean(HoodieCommonConfig.SCHEMA_EVOLUTION_ENABLE.key(), 
HoodieCommonConfig.SCHEMA_EVOLUTION_ENABLE.defaultValue())
-        && !(split instanceof BootstrapBaseFileSplit);
+  public static boolean shouldUseFilegroupReader(final JobConf jobConf, final 
InputSplit split) throws IOException {
+    if (split instanceof FileSplit || split instanceof RealtimeSplit) {
+      HoodieTableMetaClient metaClient = 
HoodieTableMetaClient.builder().setConf(getStorageConf(jobConf)).setBasePath(getTableBasePath(split,
 jobConf)).build();

Review Comment:
   lets confirm to get this reviewed from @jonvex 



##########
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java:
##########
@@ -632,6 +632,7 @@ static boolean validateConfigVersion(ConfigProperty<?> 
configProperty, HoodieTab
     // validate that the table version is greater than or equal to the config 
version
     HoodieTableVersion firstVersion = 
HoodieTableVersion.fromReleaseVersion(configProperty.getSinceVersion().get());
     boolean valid = tableVersion.greaterThan(firstVersion) || 
tableVersion.equals(firstVersion);
+    valid = valid || 
configProperty.key().equals(KEY_GENERATOR_CLASS_NAME.key()) || 
configProperty.key().equals(KEY_GENERATOR_TYPE.key());

Review Comment:
   lets discuss the right fix for this 



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