pingcap / pingcap/tidb

incorrect query result

Open
#65,161 0 comments 0 reactions 0 assignees View on GitHub
contribution severity/minor sig/planner type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

### 1. Minimal reproduce step (Required)
CREATE TABLE t0(c0 FLOAT);
CREATE TABLE IF NOT EXISTS t1 LIKE t0;
INSERT INTO t1(c0) VALUES(-1811968123),(-662745492);
INSERT INTO t0(c0) VALUES(-1811968123),(-662745492),(0);
SELECT ALL t1.c0, t0.c0 FROM t0, t1 WHERE (t0.c0) IN (IF(NULL, "'K", t1.c0));

### 2. What did you expect to see? (Required)
+-------------+-------------+
| c0 | c0 |
+-------------+-------------+
| -1811970000 | -1811970000 |
| -662745000 | -662745000 |
+-------------+-------------+
2 rows in set (0.01 sec)
### 3. What did you see instead (Required)
Empty set
### 4. What is your TiDB version? (Required)
Release Version: v8.5.4
Edition: Community
Git Commit Hash: e4e814fdc0afe9c3a6e5e96f129d83df802ab820
Git Branch: HEAD
UTC Build Time: 2025-11-26 15:59:14
GoVersion: go1.23.6
Race Enabled: false
Check Table Before Drop: false
Store: tikv |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.