fix(information_schema): statistics INDEX_TYPE should use idx.algo instead of NULL#23933
Merged
mergify[bot] merged 4 commits intomatrixorigin:3.0-devfrom Mar 23, 2026
Merged
Conversation
heni02
approved these changes
Mar 23, 2026
LeftHandCold
approved these changes
Mar 23, 2026
xupeng3112
approved these changes
Mar 23, 2026
XuPeng-SH
approved these changes
Mar 23, 2026
Contributor
Merge Queue Status
This pull request spent 49 minutes 13 seconds in the queue, including 49 minutes 1 second running CI. Required conditions to merge
|
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.
What type of PR is this?
Which issue(s) this PR fixes:
issue #23929
What this PR does / why we need it:
information_schema.STATISTICS视图中INDEX_TYPE字段被硬编码为NULL,与 MySQL 行为不一致。本 PR 将
INDEX_TYPE改为使用mo_indexes.algo字段的值,与SHOW INDEX行为保持一致。Changes:
pkg/util/sysview/predefined.go:NULL AS INDEX_TYPE→idx.algo AS INDEX_TYPEpkg/bootstrap/versions/v3_0_0/tenant_upgrade_list.go: 添加 STATISTICS 视图升级 entrytest/distributed/cases/ddl/index_metadata.sql: 添加 bvt 测试用例