vinothchandar commented on a change in pull request #1440: [HUDI-731] Add
ChainedTransformer
URL: https://github.com/apache/incubator-hudi/pull/1440#discussion_r399818837
##########
File path:
hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java
##########
@@ -102,11 +104,23 @@ public static SchemaProvider createSchemaProvider(String
schemaProviderClass, Ty
}
}
- public static Transformer createTransformer(String transformerClass) throws
IOException {
+ public static Transformer createTransformer(String transformerClasses)
throws IOException {
try {
- return transformerClass == null ? null : (Transformer)
ReflectionUtils.loadClass(transformerClass);
+ if (transformerClasses == null) {
+ return null;
+ }
+
+ String[] classNames = Arrays.stream(transformerClasses.split(","))
Review comment:
this logic can be pushed to command line parsing?
----------------------------------------------------------------
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]
With regards,
Apache Git Services