trushev commented on code in PR #5830: URL: https://github.com/apache/hudi/pull/5830#discussion_r1022515240
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/commit/BaseMergeHelper.java: ########## @@ -130,4 +145,48 @@ protected Void getResult() { return null; } } + + protected Iterator<GenericRecord> getRecordIterator( + HoodieTable<T, ?, ?, ?> table, + HoodieMergeHandle<T, ?, ?, ?> mergeHandle, + HoodieBaseFile baseFile, + HoodieFileReader<GenericRecord> reader, + Schema readSchema) throws IOException { + Option<InternalSchema> querySchemaOpt = SerDeHelper.fromJson(table.getConfig().getInternalSchema()); + if (!querySchemaOpt.isPresent()) { + querySchemaOpt = new TableSchemaResolver(table.getMetaClient()).getTableInternalSchemaFromCommitMetadata(); + } + boolean needToReWriteRecord = false; + Map<String, String> renameCols = new HashMap<>(); + // TODO support bootstrap + if (querySchemaOpt.isPresent() && !baseFile.getBootstrapBaseFile().isPresent()) { Review Comment: > @trushev can we avoid moved this code snippet, i donnot think flink evolution need to modify those codes. #6358 and #7183 will optimize this code @xiarixiaoyao This code should be moved from `HoodieMergeHelper` to `BaseMergeHelper` due to current class hierarchy: <img width="439" src="https://user-images.githubusercontent.com/42293632/201876103-6e59834e-ad85-4b22-9de4-257e26cdfd88.png"> I don't want to modify that code I just want to reuse it in flink -- 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