rahulsmahadev commented on code in PR #4435:
URL: https://github.com/apache/iceberg-python/pull/4435#discussion_r4773902760


##########
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:
   Agreed. The readers now go through a read-only 
`NestedField.initial_default_value` property, so the private attribute is only 
used inside `NestedField` (2dd2e427).
   



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