[MDEV-27493] Inconsistent warnings upon using EITS with a bit column Created: 2022-01-13  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Optimizer
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Petrunia
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-27492 DOUBLE_PREC_HB histogram has poor est... Stalled

 Description   

CREATE TABLE t (b bit(64));
INSERT INTO t VALUES (x'BE562B1A99001918');
 
ANALYZE TABLE t PERSISTENT FOR ALL;
SET use_stat_tables= PREFERABLY;
 
SELECT * FROM t;
SELECT * FROM t;
 
# Cleanup
DROP TABLE t;

The first SELECT triggers warnings, but the second identical one doesn't:

10.2 5d57e04b

SELECT * FROM t;
b
�V+��
Warnings:
Warning	1292	Truncated incorrect INTEGER value: '13715197108439488792'
Warning	1292	Truncated incorrect INTEGER value: '13715197108439488792'
SELECT * FROM t;
b
�V+��

Also reproducible with InnoDB, Aria.
Not reproducible without use_stat_tables.


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