pingcap / pingcap/tidb

Incorrect query result

Open
#41,937 1 comment 0 reactions 0 assignees View on GitHub
affects-6.5 affects-7.0 affects-7.1 affects-7.5 affects-8.1 affects-8.5 may-affects-4.0 may-affects-5.0 may-affects-5.1 may-affects-5.2 may-affects-5.3 may-affects-5.4 may-affects-6.1 severity/major sig/execution type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

```SQL
CREATE TABLE t1(c0 decimal(10,0) not null );
INSERT INTO t1 VALUES (1);
SELECT c0 FROM t1 WHERE ((CASE (t1.c0 IS NULL) WHEN true THEN 0.1 ELSE 1 END )) LIKE 1; -- actual:{}, expected:{1}
```
### 2. What did you expect to see? (Required)
The SELECT statement should return the value 1.
### 3. What did you see instead (Required)
The SELECT statement returns nothing.
### 4. What is your TiDB version? (Required)

Release Version: v6.6.0
Edition: Community
Git Commit Hash: f4ca0821fb96a2bdd37d2fb97eb26c07fc58d4e4
Git Branch: heads/refs/tags/v6.6.0
UTC Build Time: 2023-02-17 14:49:02
GoVersion: go1.19.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
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.