-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
component/tablepartitionThis issue is related to Table Partition of TiDB.This issue is related to Table Partition of TiDB.feature/developingthe related feature is in developmentthe related feature is in developmentsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/new-feature
Description
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)
Metadata
Metadata
Assignees
Labels
component/tablepartitionThis issue is related to Table Partition of TiDB.This issue is related to Table Partition of TiDB.feature/developingthe related feature is in developmentthe related feature is in developmentsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/new-feature