badalprasadsingh opened a new issue, #1685: URL: https://github.com/apache/iceberg-go/issues/1685
### Apache Iceberg version main (development) ### Please describe the bug 🐞 When a nested column is added via `AddColumn` / `UnionByNameWith` and then reordered with `MoveFirst`/`MoveBefore`/`MoveAfter` in the same `UpdateSchema`, the move is silently discarded (or fails to resolve a sibling), and the applied schema keeps the field at its default appended position. Reason for this: `parentID` map, which is seeded once in `initParentID` is never updated. `moveColumn` to `findParentID` therefore returns `TableRootID (-1)`, thus filing under the root struct and dropped by `moveFields` during apply. Top-level added columns are unaffected. ### Contribution Will submit a PR for the fix. -- 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]
