pratyakshsharma commented on a change in pull request #1562:
URL: https://github.com/apache/incubator-hudi/pull/1562#discussion_r426142657
##########
File path:
hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java
##########
@@ -106,6 +106,16 @@ public static SchemaProvider createSchemaProvider(String
schemaProviderClass, Ty
}
}
+ public static SchemaProvider createSchemaProvider(String schemaProviderClass,
+ TypedProperties cfg)
throws IOException {
+ try {
+ return schemaProviderClass == null ? null :
+ (SchemaProvider) ReflectionUtils.loadClass(schemaProviderClass, cfg);
+ } catch (Throwable e) {
+ throw new IOException("Could not load schema provider class " +
schemaProviderClass, e);
Review comment:
Done.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]