rokadepiyush49-rgb commented on issue #2633:
URL: https://github.com/apache/iceberg-go/issues/2633#issuecomment-7112445406
I'd like to take this one if nobody has started. `updateColumn` looks names
up with `findField`, which only searches the current schema, so a column added
earlier in the same update isn't found. `MoveColumn` already handles this with
`findFieldForMove`.
```mermaid
flowchart TD
A[AddColumn x] --> P[pending adds]
U[UpdateColumn x] --> F{findField in current schema}
F -- today --> E[field not found]
F -. fix, fall back .-> P
P --> M[update the pending add in place]
```
Plan is a `findForUpdate` like Java's that falls back to the added columns,
plus tests in `update_schema_test.go` for add-then-update of type, required,
doc and default. Should an update to a just-added column be merged into the
pending add, or applied as a separate change after it?
--
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]