[MDEV-10765] Wrong result - query does not retrieve values from default partition on a table partitioned by list columns Created: 2016-09-07  Updated: 2016-09-09  Resolved: 2016-09-09

Status: Closed
Project: MariaDB Server
Component/s: Partitioning
Affects Version/s: 10.2
Fix Version/s: 10.2.2

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-8348 Add catchall to all table partitionin... Closed
Sprint: 10.2.2-3

 Description   

Output

MariaDB [test]> create table t1 (i int, j int) partition by list columns(i,j) (partition p1 values in ((10,10)), partition p2 default);
Query OK, 0 rows affected (0.65 sec)
 
MariaDB [test]> insert into t1 values (10,1);
Query OK, 1 row affected (0.06 sec)
 
MariaDB [test]> select * from t1 where i = 10;
Empty set (0.00 sec)

MariaDB [test]> explain partitions select * from t1 where i = 10;
+------+-------------+-------+------------+------+---------------+------+---------+------+------+-------------+
| id   | select_type | table | partitions | type | possible_keys | key  | key_len | ref  | rows | Extra       |
+------+-------------+-------+------------+------+---------------+------+---------+------+------+-------------+
|    1 | SIMPLE      | t1    | p1         | ALL  | NULL          | NULL | NULL    | NULL |    2 | Using where |
+------+-------------+-------+------------+------+---------------+------+---------+------+------+-------------+
1 row in set (0.00 sec)

Test case

drop table if exists t1;
create table t1 (i int, j int) partition by list columns(i,j) (partition p1 values in ((10,10)), partition p2 default);
insert into t1 values (10,1);
select * from t1 where i = 10;



 Comments   
Comment by Oleksandr Byelkin [ 2016-09-08 ]

revision-id: 0a86a915842d268477c5febd8481263f00d6c792 (mariadb-10.1.8-242-g0a86a91)
parent(s): effb65bc863da0f1115e16ef5f11d11a13cdc7a0
committer: Oleksandr Byelkin
timestamp: 2016-09-08 19:43:09 +0200
message:

MDEV-10765: Wrong result - query does not retrieve values from default partition on a table partitioned by list columns

Partial matches should be treat as not exact one.

Generated at Thu Feb 08 07:44:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.