pdpark commented on PR #829: URL: https://github.com/apache/iceberg-python/pull/829#issuecomment-2218150325
I can't share the schemas, but it's just a few fields with simple `string` and `datetime` data types. The names and data types are exactly the same in both schemas and in the same order. The only difference I could find was that the NestedField(s) of one of the schemas had a `doc` field defined while the other schema did not. Converting the schema fields to a string with the Python `str` function fixes the issue because the `NestedField` `__str__` fixes the missing/empty `doc` field: ``` def __str__(self) -> str: """Return the string representation of the NestedField class.""" doc = "" if not self.doc else f" ({self.doc})" req = "required" if self.required else "optional" return f"{self.field_id}: {self.name}: {req} {self.field_type}{doc}" ``` -- 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