manuzhang commented on code in PR #15175:
URL: https://github.com/apache/iceberg/pull/15175#discussion_r2883105204
##########
api/src/main/java/org/apache/iceberg/util/StructProjection.java:
##########
@@ -179,12 +180,21 @@ public int projectedFields() {
}
public StructProjection wrap(StructLike newStruct) {
+ return wrap(newStruct, null);
+ }
+
+ public StructProjection wrap(StructLike newStruct, String newDescription) {
this.struct = newStruct;
+ this.description = newDescription;
return this;
}
+ public String description() {
+ return description;
+ }
+
public StructProjection copyFor(StructLike newStruct) {
- return new StructProjection(type, positionMap,
nestedProjections).wrap(newStruct);
+ return new StructProjection(type, positionMap,
nestedProjections).wrap(newStruct, description);
Review Comment:
Do you mean like https://github.com/apache/iceberg/pull/13251/changes?
--
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]