jonvex commented on code in PR #13654:
URL: https://github.com/apache/hudi/pull/13654#discussion_r2249371268


##########
hudi-hadoop-mr/src/main/java/org/apache/hadoop/hive/serde2/avro/HiveTypeUtils.java:
##########
@@ -235,9 +237,8 @@ private static TypeInfo generateTypeInfoWorker(Schema 
schema,
                                                  Set<Schema> seenSchemas) 
throws AvroSerdeException {
     // Avro requires NULLable types to be defined as unions of some type T
     // and NULL.  This is annoying and we're going to hide it from the user.
-    if (AvroSerdeUtils.isNullableType(schema)) {
-      return generateTypeInfo(
-          AvroSerdeUtils.getOtherTypeFromNullableType(schema), seenSchemas);
+    if (AvroSchemaUtils.isNullable(schema)) {
+      return generateTypeInfo(AvroSchemaUtils.resolveNullableSchema(schema), 
seenSchemas);

Review Comment:
   This is for hive version compatibility 



-- 
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]

Reply via email to