fix(information_schema): statistics INDEX_TYPE should use idx.algo instead of NULL#23930
Conversation
Merge Queue Status
This pull request spent 1 hour 6 minutes 4 seconds in the queue, with no time running CI. Required conditions to merge
ReasonThe merge conditions cannot be satisfied due to failing checks HintYou may have to fix your CI before adding the pull request to the queue again. |
Merge Queue Status
This pull request spent 1 hour 6 minutes 18 seconds in the queue, with no time running CI. Required conditions to merge
ReasonThe merge conditions cannot be satisfied due to failing checks HintYou may have to fix your CI before adding the pull request to the queue again. |
Merge Queue Status
This pull request spent 12 seconds in the queue, with no time running CI. Required conditions to merge
|
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/v4_0_0/tenant_upgrade_list.go: 添加 STATISTICS 视图升级 entrytest/distributed/cases/ddl/index_metadata.sql: 添加 bvt 测试用例