Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executor: index merge has wrong result for global index #43071

Closed
L-maple opened this issue Apr 14, 2023 · 1 comment
Closed

executor: index merge has wrong result for global index #43071

L-maple opened this issue Apr 14, 2023 · 1 comment
Labels
type/bug This issue is a bug.

Comments

@L-maple
Copy link
Contributor

L-maple commented Apr 14, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set session tidb_enable_index_merge = on;
drop table if exists p;
create table p (id int, c int, d int) partition by range (c) (
partition p0 values less than (4),
partition p1 values less than (7),
partition p2 values less than (10)
);
alter table p add unique idx_id(id);
alter table p add unique idx_c(c);
insert into p values (1, 1, 1), (2, 2, 2), (3, 3, 3);
SELECT /*+ USE_INDEX_MERGE(p)*/ * FROM p WHERE id = 1 OR c = 2;

2. What did you expect to see? (Required)

image

3. What did you see instead (Required)

image

4. What is your TiDB version? (Required)

-------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.1.0-alpha-144-g7d28afc3fe
Edition: Community
Git Commit Hash: 7d28afc3fe8e709861759ea96327bb9458e07a32
Git Branch: local/enhance_ddl_for_global_index_v4
UTC Build Time: 2023-04-14 09:12:14
GoVersion: go1.20.2
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

@L-maple L-maple added the type/bug This issue is a bug. label Apr 14, 2023
@Defined2014
Copy link
Contributor

duplicate with #43013, so close this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants