the-other-tim-brown commented on code in PR #13208:
URL: https://github.com/apache/hudi/pull/13208#discussion_r2056153062
##########
hudi-common/src/main/java/org/apache/hudi/keygen/constant/KeyGeneratorType.java:
##########
@@ -150,4 +150,12 @@ public static String getKeyGeneratorClassName(Map<String,
String> config) {
}
return null;
}
+
+ public KeyGeneratorType getAvroImplementation() {
+ if (name().endsWith("AVRO")) {
+ return this;
+ }
+ String avroName = name() + "_AVRO";
+ return KeyGeneratorType.valueOf(avroName);
Review Comment:
I'm thinking that this should be moved into the avro reader context class
and we can inspect whether the class is on the path before attempting this. How
does that sound?
--
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]