aihuaxu commented on code in PR #11831:
URL: https://github.com/apache/iceberg/pull/11831#discussion_r1958783694
##########
api/src/main/java/org/apache/iceberg/types/PrimitiveHolder.java:
##########
@@ -33,6 +33,6 @@ class PrimitiveHolder implements Serializable {
}
Object readResolve() throws ObjectStreamException {
- return Types.fromPrimitiveString(typeAsString);
+ return Types.fromTypeName(typeAsString);
Review Comment:
The new type tests have been added in `TestSerializableTypes`. But let me
refactor a little bit for testUnknown() which should be tested with
`isSameAs()`, same as other primitive types. `testVariant()` is testing with
`isEqualTo()`.
--
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]