aihuaxu commented on code in PR #11831:
URL: https://github.com/apache/iceberg/pull/11831#discussion_r1894551188


##########
core/src/main/java/org/apache/iceberg/SchemaParser.java:
##########
@@ -42,6 +42,7 @@ private SchemaParser() {}
   private static final String STRUCT = "struct";
   private static final String LIST = "list";
   private static final String MAP = "map";
+  private static final String VARIANT = "variant";

Review Comment:
   I was thinking of that. But PrimitiveHolder calls fromPrimitiveString() 
which is used in PrimitiveType class. Not sure if it would cause an issue in 
serialization. 
   
   > /** Replacement for primitive types in Java Serialization. */
   > class PrimitiveHolder implements Serializable {
   >   private String typeAsString = null;
   > ...
   >   Object readResolve() throws ObjectStreamException {
   >     return Types.fromPrimitiveString(typeAsString);
   >   }



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to