jonvex commented on code in PR #12510:
URL: https://github.com/apache/hudi/pull/12510#discussion_r1892566860
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/SparkBroadcastManager.java:
##########
@@ -126,4 +146,24 @@ static Configuration getHadoopConfiguration(Configuration
configuration) {
}
return (new HadoopStorageConfiguration(hadoopConf).getInline()).unwrap();
}
+
+ static Map<String, String> getSchemaEvolutionConfigs(TableSchemaResolver
schemaResolver,
+ HoodieTimeline timeline,
+
InstantFileNameGenerator fileNameGenerator,
+ String basePath) {
+ Option<InternalSchema> internalSchemaOpt =
schemaResolver.getTableInternalSchemaFromCommitMetadata();
+ Map<String, String> configs = new HashMap<>();
+ if (internalSchemaOpt.isPresent()) {
+ List<String> instantFiles =
timeline.getInstants().stream().map(fileNameGenerator::getFileName).collect(Collectors.toList());
+ configs.put(SparkInternalSchemaConverter.HOODIE_VALID_COMMITS_LIST,
String.join(",", instantFiles));
Review Comment:
https://github.com/apache/hudi/blob/9da3221a79465f3326ae3ac206b08d60864ddcaa/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala#L678
I'm sure I just copied this method
--
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]