pingcap / pingcap/tidb

Incompatible query result

Open
#45,550 3 comments 0 reactions 0 assignees View on GitHub
affects-7.5 affects-8.1 affects-8.5 may-affects-5.2 may-affects-5.3 may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.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
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (c1 DECIMAL );
INSERT INTO t1 VALUES (1);
SELECT c1 FROM t1 WHERE NOT (CAST(COS(c1 IS NOT NULL) AS DATETIME)); -- actual: {1}, expected: {}
```
### 2. What did you expect to see? (Required)
SELECT returns {}
### 3. What did you see instead (Required)
SELECT returns {1}
### 4. What is your TiDB version? (Required)

Release Version: v7.2.0
Edition: Community
Git Commit Hash: 9fd5f4a8e4f273a60fbe7d3848f85a1be8f0600b
Git Branch: heads/refs/tags/v7.2.0
UTC Build Time: 2023-06-27 15:04:42
GoVersion: go1.20.5
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.