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

The global index not work with memIndexLookUpReader executor #52132

Closed
Defined2014 opened this issue Mar 27, 2024 · 0 comments · Fixed by #52240
Closed

The global index not work with memIndexLookUpReader executor #52132

Defined2014 opened this issue Mar 27, 2024 · 0 comments · Fixed by #52240
Assignees
Labels
component/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development sig/sql-infra SIG: SQL Infra type/new-feature

Comments

@Defined2014
Copy link
Contributor

Defined2014 commented Mar 27, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set tidb_enable_global_index=true;
CREATE TABLE `t` (
  `a` int(11) DEFAULT NULL,
  `b` int(11) DEFAULT NULL,
  UNIQUE KEY `idx1` (`b`),
  KEY `idx` (`b`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
PARTITION BY HASH (`a`) PARTITIONS 5;

begin;
insert into t values (1, 2), (2, 3);
select b from t use index(idx1) where b > 2;

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

return result 3

3. What did you see instead (Required)

return empty

4. What is your TiDB version? (Required)

@Defined2014 Defined2014 added type/enhancement The issue or PR belongs to an enhancement. component/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development type/new-feature sig/sql-infra SIG: SQL Infra and removed type/enhancement The issue or PR belongs to an enhancement. labels Mar 27, 2024
@Defined2014 Defined2014 self-assigned this Mar 27, 2024
@Defined2014 Defined2014 changed the title The global index not work with UnionScan executor The global index not work with memIndexLookUpReader executor Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development sig/sql-infra SIG: SQL Infra type/new-feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant