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

the results is different from expr_pushdown #29586

Closed
ChenPeng2013 opened this issue Nov 9, 2021 · 1 comment · Fixed by tikv/tikv#11302
Closed

the results is different from expr_pushdown #29586

ChenPeng2013 opened this issue Nov 9, 2021 · 1 comment · Fixed by tikv/tikv#11302
Assignees
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@ChenPeng2013
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1 tidb
1 pd
1 tikv

use test;
drop table if exists IDT_MULTI15694STROBJSTROBJ;
CREATE TABLE `IDT_MULTI15694STROBJSTROBJ` (
  `COL2` tinyint(41) DEFAULT NULL,
  `COL3` datetime(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
insert into IDT_MULTI15694STROBJSTROBJ values(-125, "9347-10-13 11:01:49.00000"), (-56, "6577-08-23 06:26:51.00000");
SELECT * FROM IDT_MULTI15694STROBJSTROBJ WHERE COL2 - -126 < 649680178125 AND COL2 / 489466941506 != 0;
INSERT INTO mysql.expr_pushdown_blacklist VALUES('<','tikv',''), ('/','tikv','');
ADMIN reload expr_pushdown_blacklist;
SELECT * FROM IDT_MULTI15694STROBJSTROBJ WHERE COL2 - -126 < 649680178125 AND COL2 / 489466941506 != 0;

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

mysql> SELECT * FROM IDT_MULTI15694STROBJSTROBJ WHERE COL2 - -126 < 649680178125 AND COL2 / 489466941506 != 0;
Empty set (0.00 sec)

mysql> INSERT INTO mysql.expr_pushdown_blacklist VALUES('<','tikv',''), ('/','tikv','');
Query OK, 2 rows affected (0.01 sec)
Records: 2  Duplicates: 0  Warnings: 0

mysql> ADMIN reload expr_pushdown_blacklist;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT * FROM IDT_MULTI15694STROBJSTROBJ WHERE COL2 - -126 < 649680178125 AND COL2 / 489466941506 != 0;
Empty set (0.00 sec)

3. What did you see instead (Required)

mysql> SELECT * FROM IDT_MULTI15694STROBJSTROBJ WHERE COL2 - -126 < 649680178125 AND COL2 / 489466941506 != 0;
+------+---------------------------+
| COL2 | COL3                      |
+------+---------------------------+
| -125 | 9347-10-13 11:01:49.00000 |
|  -56 | 6577-08-23 06:26:51.00000 |
+------+---------------------------+
2 rows in set (0.00 sec)

mysql> INSERT INTO mysql.expr_pushdown_blacklist VALUES('<','tikv',''), ('/','tikv','');
Query OK, 2 rows affected (0.01 sec)
Records: 2  Duplicates: 0  Warnings: 0

mysql> ADMIN reload expr_pushdown_blacklist;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT * FROM IDT_MULTI15694STROBJSTROBJ WHERE COL2 - -126 < 649680178125 AND COL2 / 489466941506 != 0;
Empty set (0.00 sec)

4. What is your TiDB version? (Required)

Release Version: v5.4.0-alpha-49-g49d995d57
Edition: Community
Git Commit Hash: 49d995d577f64b79168a145cb5be45151ebb557a
Git Branch: master
UTC Build Time: 2021-11-08 10:12:15
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
@ChenPeng2013 ChenPeng2013 added type/bug The issue is confirmed as a bug. severity/critical affects-5.3 This bug affects 5.3.x versions. labels Nov 9, 2021
@ChenPeng2013 ChenPeng2013 added the sig/execution SIG execution label Nov 9, 2021
@ichn-hu ichn-hu assigned lzmhhh123 and unassigned ichn-hu Nov 9, 2021
@ChenPeng2013 ChenPeng2013 added affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. labels Nov 10, 2021
@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

wshwsh12 added a commit to ti-srebot/tikv that referenced this issue Dec 20, 2021
Signed-off-by: wshwsh12 <793703860@qq.com>
ti-chi-bot added a commit to tikv/tikv that referenced this issue Feb 10, 2022
ref #11302, close pingcap/tidb#29586

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>

Co-authored-by: Zhuomin Liu <lzmhhh123@gmail.com>
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot added a commit to tikv/tikv that referenced this issue Apr 15, 2022
ref #11302, close pingcap/tidb#29586

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: Zhuomin Liu <lzmhhh123@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants