officialasishkumar opened a new pull request, #63216:
URL: https://github.com/apache/doris/pull/63216

   ### What problem does this PR solve?
   
   Issue Number: close #62226
   
   Related PR: None
   
   Problem Summary:
   
   `ALTER MATERIALIZED VIEW db.mv RENAME db.new_mv` failed during parsing 
because the MTMV `RENAME` target accepted only a single identifier. The 
underlying rename still operates inside the source database, so this PR parses 
the target as a multipart identifier and validates that any supplied catalog or 
database qualifier matches the source materialized view.
   
   ### Release note
   
   Support qualified target names in `ALTER MATERIALIZED VIEW ... RENAME` when 
the qualifier matches the source materialized view.
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [x] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. Qualified rename targets for MTMV are now accepted when they 
resolve to the same catalog and database.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   


-- 
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]

Reply via email to