rdblue commented on code in PR #5602:
URL: https://github.com/apache/iceberg/pull/5602#discussion_r950904217
##########
api/src/main/java/org/apache/iceberg/expressions/BoundReference.java:
##########
@@ -26,10 +26,12 @@
public class BoundReference<T> implements BoundTerm<T>, Reference<T> {
private final Types.NestedField field;
private final Accessor<StructLike> accessor;
+ private final String name;
- BoundReference(Types.NestedField field, Accessor<StructLike> accessor) {
+ BoundReference(Types.NestedField field, Accessor<StructLike> accessor,
String name) {
this.field = field;
this.accessor = accessor;
+ this.name = name;
Review Comment:
Tracking the field name was needed to handle bound expressions. This is also
a good thing to track for other purposes (e.g., easier to read log messages
with bound expressions).
--
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]