You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
drop table if exists PK_HP9236;
CREATE TABLE `PK_HP9236` (
`COL1` int NOT NULL DEFAULT '25' COMMENT 'NUMERIC PK',
`COL2` varchar(20) COLLATE utf8mb4_bin DEFAULT NULL,
`COL4` datetime DEFAULT NULL,
`COL3` bigint NOT NULL,
`COL5` float DEFAULT NULL,
PRIMARY KEY (`COL1`,`COL3`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
/*!50100 PARTITION BY HASH ((`COL1` * `COL3`))
PARTITIONS 13;
select * from PK_HP9236 where col3 in (-163702007293870918, 2659937067964964513, 2322376022806085210) and col1 = 783367513002;
2. What did you expect to see? (Required)
mysql> select * from PK_HP9236 where col3 in (-163702007293870918, 2659937067964964513, 2322376022806085210) and col1 = 783367513002;
Empty set (0.00 sec)
3. What did you see instead (Required)
mysql> select * from PK_HP9236 where col3 in (-163702007293870918, 2659937067964964513, 2322376022806085210) and col1 = 783367513002;
ERROR 1690 (22003): BIGINT value is out of range in '(test.pk_hp9236.col1 * test.pk_hp9236.col3)'
4. What is your TiDB version? (Required)
It can be reproduced on branch release-5.0、release-5.1、master
Release-4.0 doesn't exist the issue。
Release Version: v5.1.0-64-gfb0eaf7b4
Edition: Community
Git Commit Hash: fb0eaf7b44b9ddb1494bf8194d8e361c538146dc
Git Branch: release-5.1
UTC Build Time: 2021-07-26 06:50:38
GoVersion: go1.16.5
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
It can be reproduced on branch release-5.0、release-5.1、master
Release-4.0 doesn't exist the issue。
The text was updated successfully, but these errors were encountered: