badalprasadsingh opened a new issue, #1562:
URL: https://github.com/apache/iceberg-go/issues/1562

   ### Apache Iceberg version
   
   main (development)
   
   ### Please describe the bug 🐞
   
   When syncing an iceberg schema to a Glue table, `schemasToGlueColumns` 
collects columns into a Go map and sorts them by Iceberg Field ID. This 
produces a physical Glue column order that differs from the table's current 
logical schema order whenever columns have been _reordered_, _dropped_, or 
_added_ out of ID sequence.
   
   We should not be tampering with the order of the columns. The current 
schema's logical column order should be preserved, then append the historical 
columns, with **no sorting**. A behavior which is similar to 
[Iceberg-Java](https://github.com/apache/iceberg/blob/60975ecd8d9352cfe62448dd59915b7d7bd57011/aws/src/main/java/org/apache/iceberg/aws/glue/IcebergToGlueConverter.java#L346-L366).


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