[MDEV-15056] Partition pruning doesn't prune in system-versioned table Created: 2018-01-24  Updated: 2018-02-21  Resolved: 2018-02-21

Status: Closed
Project: MariaDB Server
Component/s: Partitioning, Versioned Tables
Affects Version/s: 10.3.4
Fix Version/s: 10.3.5

Type: Bug Priority: Critical
Reporter: Eugene Kosov (Inactive) Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-15036 Assertion `!is_set() || (m_status == ... Closed
is duplicated by MDEV-15191 Assertion `bit < (map)->n_bits' faile... Closed

 Description   

create or replace table t1 (x int)
with system versioning
partition by system_time (
partition p0 history,
partition pn current);
insert into t1 values (1);
explain partitions select * from t1;

+------+-------------+-------+------------+------+---------------+------+---------+------+------+-------------+
| id   | select_type | table | partitions | type | possible_keys | key  | key_len | ref  | rows | Extra       |
+------+-------------+-------+------------+------+---------------+------+---------+------+------+-------------+
|    1 | SIMPLE      | t1    | p0,pn      | ALL  | NULL          | NULL | NULL    | NULL |    2 | Using where |
+------+-------------+-------+------------+------+---------------+------+---------+------+------+-------------+

Broken after https://github.com/MariaDB/server/commit/fbed4ca4f1fb827181074233be849665abf6091d



 Comments   
Comment by Eugene Kosov (Inactive) [ 2018-01-24 ]

Cause of problem is `row_start is NULL` addition to WHERE.

Comment by Aleksey Midenkov [ 2018-01-30 ]

Partition pruning revision and fixes #455

Generated at Thu Feb 08 08:18:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.