Query results differ from mysql with indexed null #40158
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.
affects-5.4
This bug affects 5.4.x versions.
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
severity/critical
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Bug Report
Result filtering seems broken when using an index containing
null
.1. Minimal reproduce step
2. What did you expect to see?
No rows returned. Using mysql (8.0.23) I get:
3. What did you see instead
tidb shows a row that doesn't satisfy
_id < 1
from the where clause:If I drop the index, I see tidb filters out the row correctly
4. What is your TiDB version?
Also on tidbcloud
The text was updated successfully, but these errors were encountered: