Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error msg is not same in unistore and TiKV #47693

Open
Defined2014 opened this issue Oct 17, 2023 · 2 comments
Open

Error msg is not same in unistore and TiKV #47693

Defined2014 opened this issue Oct 17, 2023 · 2 comments
Labels
severity/minor sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@Defined2014
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE IDT_20290 (
  COL1 mediumtext DEFAULT NULL,
  COL2 decimal(52,7) DEFAULT NULL,
  COL3 datetime DEFAULT NULL,
  KEY U_M_COL (COL1(10),COL2,COL3) /*!80000 INVISIBLE */);
INSERT INTO IDT_20290 VALUES
  ('',210255309400.4264137,'4273-04-17 17:26:51'),
  (NULL,952470120213.2538798,'7087-08-19 21:38:49'),
  ('俦',486763966102.1656494,'8846-06-12 12:02:13'),
  ('憁',610644171405.5953911,'2529-07-19 17:24:49'),
  ('顜',-359717183823.5275069,'2599-04-01 00:12:08'),
  ('塼',466512908211.1135111,'1477-10-20 07:14:51'),
  ('宻',-564216096745.0427987,'7071-11-20 13:38:24'),
  ('網',-483373421083.4724254,'2910-02-19 18:29:17'),
  ('顥',164020607693.9988781,'2820-10-12 17:38:44'),
  ('谪',25949740494.3937876,'6527-05-30 22:58:37');
select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;

2. What did you expect to see? (Required)

msgs are same

3. What did you see instead (Required)

unistore

mysql> select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;
Error 1690 (22003): DECIMAL value is out of range

tikv

mysql> select * from IDT_20290 where col2 * 049015787697063065230692384394107598316198958.1850509 >= 659971401668884663953087553591534913868320924.5040396 and col2 = 869042976700631943559871054704914143535627349.9659934;
ERROR 1690 (22003):  value is out of range in ''

4. What is your TiDB version? (Required)

mysql> select tidb_version();
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                             |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.5.0-alpha
Edition: Community
Git Commit Hash: 4765838f4dc093bb2b2a16b0fd20a73e397532c6
Git Branch: heads/refs/tags/v7.5.0-alpha
UTC Build Time: 2023-10-16 14:25:07
GoVersion: go1.21.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
@Defined2014 Defined2014 added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner labels Oct 17, 2023
@Defined2014
Copy link
Contributor Author

ref #43520

@aytrack
Copy link
Contributor

aytrack commented Oct 17, 2023

/severity minor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants