rdblue commented on code in PR #4732:
URL: https://github.com/apache/iceberg/pull/4732#discussion_r876052393
##########
api/src/main/java/org/apache/iceberg/types/Types.java:
##########
@@ -462,7 +483,7 @@ public NestedField asOptional() {
if (isOptional) {
return this;
}
- return new NestedField(true, id, name, type, doc);
+ return new NestedField(true, id, name, type, doc, initialDefault,
writeDefault);
Review Comment:
If possible, I'd really like to hide the complexity of both defaults as
you're suggesting. Unfortunately, I don't see a good way to do that.
--
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]