Davis-Zhang-Onehouse commented on code in PR #12826:
URL: https://github.com/apache/hudi/pull/12826#discussion_r1964165147
##########
hudi-common/src/main/java/org/apache/hudi/common/util/CleanerUtils.java:
##########
@@ -125,6 +126,20 @@ public static HoodieCleanMetadata
getCleanerMetadata(HoodieTableMetaClient metaC
return metadataMigrator.upgradeToLatest(cleanMetadata,
cleanMetadata.getVersion());
}
+ public static HoodieCleanMetadata getCleanerMetadata(HoodieTableMetaClient
metaClient, Option<InputStream> details)
+ throws IOException {
+ CleanMetadataMigrator metadataMigrator = new
CleanMetadataMigrator(metaClient);
+ HoodieCleanMetadata cleanMetadata =
TimelineMetadataUtils.deserializeHoodieCleanMetadata(details);
+ return metadataMigrator.upgradeToLatest(cleanMetadata,
cleanMetadata.getVersion());
+ }
+
+ public static HoodieCleanMetadata
getCleanerMetadataFromInputStream(HoodieTableMetaClient metaClient,
Option<InputStream> in)
+ throws IOException {
+ CleanMetadataMigrator metadataMigrator = new
CleanMetadataMigrator(metaClient);
+ HoodieCleanMetadata cleanMetadata =
TimelineMetadataUtils.deserializeHoodieCleanMetadata(in);
+ return metadataMigrator.upgradeToLatest(cleanMetadata,
cleanMetadata.getVersion());
+ }
Review Comment:
oh yes, fixed.
--
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]