sungwy commented on issue #1284:
URL: 
https://github.com/apache/iceberg-python/issues/1284#issuecomment-2474284318

   > If Iceberg Schema is given, it will use its original assigned ID. If 
PyArrow Schemas is given, it will be converted to Iceberg Schemas and have IDs 
assigned.
   
   @kevinjqliu - Yes, I actually feel more inclined to drive this based on the 
type of the input schema. To me, the fact that the Iceberg Schema is required 
to have IDs assigned makes a very strong case for us to respect the given field 
IDs and propagate it to the Iceberg table metadata. 
   
   The case where some Iceberg Rest Catalog Servers do not respect the given 
field IDs and assigns fresh IDs actually feels more like an edge case to me, 
that we want to opine on and course correct. 
   
   Ideally, when the IDs are specified on the Schema, it should be respected by 
the server. Else, the Schema supplied in a **createTableRequest** should not 
have field IDs assigned in the request.
   
   This approach aligns with my initial proposal on the issue description ⬆️ 
   
   I put up the PR with the `assign_fresh_ids` flag based on @Fokko 's concerns 
with above approach. Could I ask for your reviews on this PR, and maybe we can 
decide on the approach there? https://github.com/apache/iceberg-python/pull/1304


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

Reply via email to