[MDEV-27580] Bogus warning ER_TRUNCATED_WRONG_VALUE with DESC key on partitioned Spider table Created: 2022-01-22  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Partitioning, Storage Engine - Spider
Affects Version/s: N/A
Fix Version/s: 10.11

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-13756 Implement descending index: KEY (a DE... Closed

 Description   

--source include/have_partition.inc
 
INSTALL SONAME 'ha_spider';
SET spider_same_server_link= 1;
 
CREATE TABLE t1 (id INT);
CREATE TABLE t2 (id INT);
eval 
CREATE TABLE t (id INT, PRIMARY KEY (id DESC))
ENGINE=SPIDER
COMMENT "host '127.0.0.1', port '$MASTER_MYPORT', user 'root'"
PARTITION BY RANGE (id)
(PARTITION p1 VALUES LESS THAN (100) COMMENT "table 't1'",
 PARTITION p2 VALUES LESS THAN (MAXVALUE) COMMENT "table 't2'");
 
INSERT INTO t (id) VALUES (1),(2);
SELECT MAX(id) FROM t;

preview-10.8-MDEV-13756-desc-indexes c10e10c6

SELECT MAX(id) FROM t;
MAX(id)
2
Warnings:
Warning	1292	Truncated incorrect INTEGER value: ''

Doesn't happen with an ASC key.
Doesn't happen when the other partition isn't empty.


Generated at Thu Feb 08 09:54:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.