Uh oh!
There was an error while loading. Please reload this page.
[fix](mtmv)Fix that the storage medium specified for the mtmv is SSD, but the partition storage medium for the mtmv is still HDD - #35644
Merged
Conversation
doris-robot
commented
May 30, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
zddr
commented
May 30, 2024
ContributorAuthor
run buildall |
zddr
commented
May 30, 2024
ContributorAuthor
run performance |
zddr
commented
May 30, 2024
ContributorAuthor
run buildall |
doris-robot
commented
May 30, 2024
TPC-H: Total hot run time: 41674 ms |
doris-robot
commented
May 30, 2024
TPC-DS: Total hot run time: 172287 ms |
doris-robot
commented
May 30, 2024
ClickBench: Total hot run time: 30.88 s |
zddr
commented
May 31, 2024
ContributorAuthor
run buildall |
doris-robot
commented
May 31, 2024
TPC-H: Total hot run time: 40159 ms |
zddr
commented
Jun 3, 2024
ContributorAuthor
run buildall |
doris-robot
commented
Jun 3, 2024
TPC-H: Total hot run time: 41718 ms |
doris-robot
commented
Jun 3, 2024
TPC-DS: Total hot run time: 169392 ms |
doris-robot
commented
Jun 3, 2024
ClickBench: Total hot run time: 30.25 s |
morrySnow
approved these changes
Jun 3, 2024
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
seawinde
approved these changes
Jun 3, 2024
dataroaring pushed a commit
that referenced
this pull request
Jun 4, 2024
…, but the partition storage medium for the mtmv is still HDD (#35644) fix when create mtmv use property `'storage_medium' = 'SSD'`,after refresh mtmv, partition's `storage_medium` is HDD Not only is there a problem with mtmv, but essentially, when creating partitions, there is no inheritance of the table
seawinde pushed a commit
to seawinde/doris
that referenced
this pull request
Jun 5, 2024
…, but the partition storage medium for the mtmv is still HDD (apache#35644) fix when create mtmv use property `'storage_medium' = 'SSD'`,after refresh mtmv, partition's `storage_medium` is HDD Not only is there a problem with mtmv, but essentially, when creating partitions, there is no inheritance of the table
zddr added a commit
to zddr/incubator-doris
that referenced
this pull request
Jun 6, 2024
…, but the partition storage medium for the mtmv is still HDD (apache#35644) fix when create mtmv use property `'storage_medium' = 'SSD'`,after refresh mtmv, partition's `storage_medium` is HDD Not only is there a problem with mtmv, but essentially, when creating partitions, there is no inheritance of the table
morrySnow pushed a commit
that referenced
this pull request
Sep 24, 2024
… table (#41192) revert #35644 table if not set storage medium, will set default by `Config.default_storage_medium`, at present, we cannot distinguish whether the storage medium of the table is set by the user. If it is not set by the user, it represents priority use rather than mandatory use. If we directly inherit the storage medium of the table, it may cause the partition to be forced to use 'Config. default_storage_madium', resulting in the partition being unable to be created
zddr added a commit
to zddr/incubator-doris
that referenced
this pull request
Sep 24, 2024
… table (apache#41192) revert apache#35644 table if not set storage medium, will set default by `Config.default_storage_medium`, at present, we cannot distinguish whether the storage medium of the table is set by the user. If it is not set by the user, it represents priority use rather than mandatory use. If we directly inherit the storage medium of the table, it may cause the partition to be forced to use 'Config. default_storage_madium', resulting in the partition being unable to be created
zddr added a commit
to zddr/incubator-doris
that referenced
this pull request
Sep 24, 2024
… table (apache#41192) revert apache#35644 table if not set storage medium, will set default by `Config.default_storage_medium`, at present, we cannot distinguish whether the storage medium of the table is set by the user. If it is not set by the user, it represents priority use rather than mandatory use. If we directly inherit the storage medium of the table, it may cause the partition to be forced to use 'Config. default_storage_madium', resulting in the partition being unable to be created
dataroaring pushed a commit
that referenced
this pull request
Sep 26, 2024
… table (#41192) revert #35644 table if not set storage medium, will set default by `Config.default_storage_medium`, at present, we cannot distinguish whether the storage medium of the table is set by the user. If it is not set by the user, it represents priority use rather than mandatory use. If we directly inherit the storage medium of the table, it may cause the partition to be forced to use 'Config. default_storage_madium', resulting in the partition being unable to be created
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
…, but the partition storage medium for the mtmv is still HDD (apache#35644) fix when create mtmv use property `'storage_medium' = 'SSD'`,after refresh mtmv, partition's `storage_medium` is HDD Not only is there a problem with mtmv, but essentially, when creating partitions, there is no inheritance of the table
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
… table (apache#41192) revert apache#35644 table if not set storage medium, will set default by `Config.default_storage_medium`, at present, we cannot distinguish whether the storage medium of the table is set by the user. If it is not set by the user, it represents priority use rather than mandatory use. If we directly inherit the storage medium of the table, it may cause the partition to be forced to use 'Config. default_storage_madium', resulting in the partition being unable to be created
lxl80 pushed a commit
to lxl80/doris
that referenced
this pull request
Jul 1, 2026
问题描述:
创建异步物化视图(MTMV)时指定 storage_medium,如:
CREATE MATERIALIZED VIEW mv ... PROPERTIES ('storage_medium' = 'SSD')
REFRESH 后,基表新增分区在 MTMV 中对齐创建的新分区,其
storage_medium 始终为 HDD(Config.default_storage_medium),
而非用户显式指定的 SSD。
此前曾尝试在 InternalCatalog.addPartition() 公共层解决此问题
(apache#35644),但该方案无法区分"用户未设置 storage_medium"与
"用户显式设置为默认值"两种场景,导致普通表分区也被强制绑定
默认介质、创建失败,后被回退(apache#41192)。核心困难在于
InternalCatalog 层拿到的 OlapTable.getStorageMedium() 不会
区分"显式设置"与"未设置"。
本方案仅在 MTMV 刷新路径生效(MTMVPartitionUtil.addPartition),
不涉及普通表 ADD PARTITION 行为。利用 OlapTable.getStorageMedium()
在 TableProperty 未设置 storage_medium 时返回 null 的特性,
配合 null 判空 + DEFAULT_STORAGE_MEDIUM 对比,三态逻辑准确:
- getStorageMedium() == null → user 未设,跳过
- 等于 DEFAULT_STORAGE_MEDIUM → 显式设置为默认值,跳过
- 不等于 DEFAULT_STORAGE_MEDIUM → 显式设置为非默认值,覆盖
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 freeto 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.
fix when create mtmv use property
'storage_medium' = 'SSD',after refresh mtmv, partition'sstorage_mediumis HDDNot only is there a problem with mtmv, but essentially, when creating partitions, there is no inheritance of the table