sebpretzer commented on issue #229: URL: https://github.com/apache/iceberg-python/issues/229#issuecomment-1866915656
Ah, that makes sense. I assume the re-assigning is happening [here](https://github.com/apache/iceberg-python/blob/03caee20570cd7eabd2a5a9ee7341a154b818ca1/pyiceberg/table/metadata.py#L407). When initializing a `Schema`, it seems like it is required that have to set a field-id. This fails: ```python Schema(NestedField(name="retries", field_type=IntegerType())) ``` Would it be possible to improve the user experience by either auto-populating field-ids in pre-order if not provided, or by failing on initialization when the field-ids are not in pre-order? -- 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]
