LuciferYang commented on PR #11028:
URL: https://github.com/apache/paimon/pull/11028#issuecomment-6731738540
@skyyyy955 Reproduced on this branch: each rename maps the old key once, so
the key becomes `middle` and schema-1 is written. Java builds a `Schema` for
every alter, and its constructor rejects this one ("should include all primary
key constraint [middle]"), so I added the same check to `alter_table` here, in
0fd64d5bd1. The alter now fails before schema-1 is written and the table keeps
`id` as its key. `test_alter_table_rejects_rename_that_drops_a_primary_key`
covers it, together with a single rename of the key that still works.
@Akash3121 It is the same check `create_table` now runs, so I kept it in
this PR instead of a follow-up, and the description covers `alter_table` too.
--
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]