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

incorrectly fetch null data #16679

Closed
mahjonp opened this issue Apr 21, 2020 · 11 comments
Closed

incorrectly fetch null data #16679

mahjonp opened this issue Apr 21, 2020 · 11 comments
Labels
challenge-program component/expression good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@mahjonp
Copy link
Contributor

mahjonp commented Apr 21, 2020

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?

TiDB

mysql> create table t0(c0 int);
Query OK, 0 rows affected (0.07 sec)

mysql>  insert into t0 values(null);
Query OK, 1 row affected (0.01 sec)

mysql>  select * from t0 where ((!(1.5071004017670217e-01=t0.c0))) IS NULL;
Empty set (0.00 sec)

mysql> select ((!(1.5071004017670217e-01=null))) IS NULL;
+--------------------------------------------+
| ((!(1.5071004017670217e-01=null))) IS NULL |
+--------------------------------------------+
|                                          1 |
+--------------------------------------------+
1 row in set (0.00 sec)

TiDB and MySQL 8.0.19

image

4. What version of TiDB are you using? (tidb-server -V or run select tidb_version(); on TiDB)

mysql> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                                         |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v4.0.0-beta.2-305-g94011e6064
Git Commit Hash: 94011e6064fffc7df1057e2a9b2b866f429e7494
Git Branch: HEAD
UTC Build Time: 2020-04-21 11:03:51
GoVersion: go1.13.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

SIG slack channel

#sig-exec

Score

  • 300

Mentor

@mahjonp mahjonp added the type/bug The issue is confirmed as a bug. label Apr 21, 2020
@SunRunAway SunRunAway added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. difficulty/easy good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Apr 21, 2020
@TszKitLo40
Copy link
Contributor

/pick-up

@ti-challenge-bot
Copy link

Pick up success.

@TszKitLo40
Copy link
Contributor

/give-up

@ti-challenge-bot ti-challenge-bot bot removed the picked label Sep 9, 2020
@ti-challenge-bot
Copy link

Give up success.

@TszKitLo40
Copy link
Contributor

/pick-up

@ti-challenge-bot
Copy link

Pick up success.

@ti-challenge-bot
Copy link

@TszKitLo40 You did not submit PR within 7 days, so give up automatically.

@ti-challenge-bot ti-challenge-bot bot removed the picked label Sep 19, 2020
@TszKitLo40
Copy link
Contributor

/pick-up

@ti-challenge-bot
Copy link

Pick up success.

@wshwsh12
Copy link
Contributor

fixed by #24049

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge-program component/expression good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
6 participants