gavinchou opened a new pull request, #65053:
URL: https://github.com/apache/doris/pull/65053
### What problem does this PR solve?
When `ALTER TABLE ... MODIFY PARTITION ... SET ("storage_policy" = ...)`
changes an existing partition policy to another policy backed by a different
storage resource, Doris should reject the operation.
Before this patch, the BE tablet meta update was sent before FE checked the
old/new policy resource compatibility. The SQL could fail later in FE, while BE
tablet meta had already persisted the new `storage_policy_id`.
### Check List
- [x] Add a pre-check before updating BE tablet meta.
- [x] Keep same-resource policy switching allowed.
- [x] Add regression coverage for `MODIFY PARTITION (*)` cross-resource
failure.
### Tests
- `git diff --check`
--
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]