branch-4.0:[fix](sync) Treat empty cancel alter job list as all rollup jobs (#62712)#62964
Open
seawinde wants to merge 1 commit intoapache:branch-4.0from
Open
branch-4.0:[fix](sync) Treat empty cancel alter job list as all rollup jobs (#62712)#62964seawinde wants to merge 1 commit intoapache:branch-4.0from
seawinde wants to merge 1 commit intoapache:branch-4.0from
Conversation
…che#62712) Problem Summary: Nereids always constructs a non-null alter job id list for `CANCEL ALTER TABLE`, using an empty list when the SQL omits explicit job ids. `SchemaChangeHandler` already treats an empty list as "cancel all unfinished jobs on the table", but `MaterializedViewHandler` only checked for `null`. As a result, `CANCEL ALTER TABLE ... ROLLUP FROM db.tbl` could incorrectly search by explicit job ids, find nothing, and throw `Table[...] is not under ROLLUP` even when the table still had unfinished rollup jobs. This change aligns `MaterializedViewHandler` with `SchemaChangeHandler` by treating an empty job-id list the same as an omitted list, and adds regression tests for both the handler path and the Nereids parser behavior.
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Member
Author
|
run buildall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pr: #62712
commitId: 98b9338