branch-3.0: [Bug](mtmv) update mapping relation when mtmv occur alter #46983#47062
Merged
dataroaring merged 1 commit intobranch-3.0from Feb 22, 2025
Merged
branch-3.0: [Bug](mtmv) update mapping relation when mtmv occur alter #46983#47062dataroaring merged 1 commit intobranch-3.0from
dataroaring merged 1 commit intobranch-3.0from
Conversation
### What problem does this PR solve? CREATE MATERIALIZED VIEW mv_a REFRESH COMPLETE ON commit DISTRIBUTED BY HASH(`sid`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ) AS select * from stu limit 1; CREATE MATERIALIZED VIEW mv_aa REFRESH COMPLETE ON commit DISTRIBUTED BY HASH(`sid`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ) AS select * from mv_a limit 1; alter MATERIALIZED VIEW mv_a RENAME mv_b CREATE TABLE `mv_a` ( `sid` int(32) NULL, `sname` varchar(32) NULL, ) ENGINE=OLAP DUPLICATE KEY(`sid`) DISTRIBUTED BY HASH(`sid`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ); CREATE MATERIALIZED VIEW mv_a REFRESH COMPLETE ON commit DISTRIBUTED BY HASH(`sid`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1" ) AS select * from stu limit 1; select * from stu limit 1; java.lang.ClassCastException: class org.apache.doris.catalog.OlapTable cannot be cast to class org.apache.doris.catalog.MTMV (org.apache.doris.catalog.OlapTable and org.apache.doris.catalog.MTMV are in unnamed module of loader 'app') --------- Co-authored-by: garenshi <garenshi@tencent.com>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
TPC-H: Total hot run time: 41629 ms |
TPC-DS: Total hot run time: 192346 ms |
ClickBench: Total hot run time: 33.63 s |
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.
Cherry-picked from #46983