rahulsmahadev commented on code in PR #4435:
URL: https://github.com/apache/iceberg-python/pull/4435#discussion_r4773903358
##########
pyiceberg/types.py:
##########
@@ -469,6 +471,11 @@ def __init__(
data["initial-default"] = data["initial-default"] if "initial-default"
in data else initial_default
data["write-default"] = data["write-default"] if "write-default" in
data else write_default
super().__init__(**data)
+ self._initial_default_value = self.initial_default
+ if self.initial_default is not None and isinstance(self.field_type,
(DateType, TimeType, TimestampType, TimestamptzType)):
Review Comment:
Yes, `timestamp_ns` and `timestamptz_ns` were missing. The type list is
gone. Non-null nanosecond defaults still fail in `_deserialize_default_value`,
before this conversion, and literal conversion to those types is not
implemented yet. Both are existing gaps.
--
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]