rdblue commented on code in PR #12346:
URL: https://github.com/apache/iceberg/pull/12346#discussion_r1995896505


##########
core/src/main/java/org/apache/iceberg/SchemaParser.java:
##########
@@ -141,11 +145,39 @@ static void toJson(Types.MapType map, JsonGenerator 
generator) throws IOExceptio
   }
 
   static void toJson(Type.PrimitiveType primitive, JsonGenerator generator) 
throws IOException {
-    generator.writeString(primitive.toString());
+    switch (primitive.typeId()) {

Review Comment:
   I missed that in the spec.
   
   @szehon-ho, why are we using objects for these when we also support parsing 
them as we do for `decimal` and `fixed`? Should we update the spec?



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