rdblue commented on code in PR #6139: URL: https://github.com/apache/iceberg/pull/6139#discussion_r1022065801
########## python/pyiceberg/expressions/__init__.py: ########## @@ -126,10 +164,13 @@ def bind(self, schema: Schema, case_sensitive: bool = True) -> BoundReference[T] """ field = schema.find_field(name_or_id=self.name, case_sensitive=case_sensitive) accessor = schema.accessor_for_field(field.field_id) - return BoundReference(field=field, accessor=accessor) + return self.as_bound(field=field, accessor=accessor) + + @property + def as_bound(self) -> Type[BoundReference]: Review Comment: That makes sense. I remember moving things around to avoid this problem, but I see how we'd have it if we had a mirror method to go to unbound. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org