rdblue commented on code in PR #4609:
URL: https://github.com/apache/iceberg/pull/4609#discussion_r855647626


##########
python/src/iceberg/expressions/base.py:
##########
@@ -122,3 +124,37 @@ def __le__(self, other):
 
     def __ge__(self, other):
         return self.value >= other.value
+
+
+class Accessor(Generic[T], ABC):
+    """An accessor for a specific position in a container of type T

Review Comment:
   Do we need `T`? We parameterize that type in Java, but because types are 
more rigid. In Python, we can probably use the `StructProtocol` instead because 
a class can "implement" the protocol just by having those methods.



-- 
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]

Reply via email to