From b47298043316c2de21d02190049294686281e3ad Mon Sep 17 00:00:00 2001 From: slfan1989 Date: Mon, 28 Nov 2022 11:28:55 +0800 Subject: [PATCH] HUDI-5283. Replace deprecated method Schema.parse With Schema.Parser. --- .../hudi/client/bootstrap/HoodieBootstrapSchemaProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/bootstrap/HoodieBootstrapSchemaProvider.java b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/bootstrap/HoodieBootstrapSchemaProvider.java index c8e552b1a8dd..ce4c42ba1665 100644 --- a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/bootstrap/HoodieBootstrapSchemaProvider.java +++ b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/bootstrap/HoodieBootstrapSchemaProvider.java @@ -48,7 +48,7 @@ public HoodieBootstrapSchemaProvider(HoodieWriteConfig writeConfig) { public final Schema getBootstrapSchema(HoodieEngineContext context, List>> partitions) { if (writeConfig.getSchema() != null) { // Use schema specified by user if set - Schema userSchema = Schema.parse(writeConfig.getSchema()); + Schema userSchema = new Schema.Parser().parse(writeConfig.getSchema()); if (!HoodieAvroUtils.getNullSchema().equals(userSchema)) { return userSchema; }