Fokko commented on code in PR #4435:
URL: https://github.com/apache/iceberg-python/pull/4435#discussion_r4769088287
##########
pyiceberg/types.py:
##########
@@ -437,6 +437,8 @@ class NestedField(IcebergType):
doc: str | None = Field(default=None, repr=False)
initial_default: DefaultValue | None = Field(alias="initial-default",
default=None, repr=True) # type: ignore
write_default: DefaultValue | None = Field(alias="write-default",
default=None, repr=True) # type: ignore
+ # The initial-default as bound literals hold it: days or microseconds for
temporal types
+ _initial_default_value: Any = PrivateAttr()
Review Comment:
The definition of a `PrivateAttr` is that it shouldn't be used outside of a
class, while that's exactly what we're doing above.
--
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]