Duplicate Rows in Query with Binary Condition #57390
Labels
impact/wrong-result
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
may-affects-8.5
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
A query on table
t1
with conditions involving theVARBINARY
column(c1)
returns duplicate rows unexpectedly.Although
t1
contains only five distinct records, the query returns 15 rows, repeating each original row three times.This suggests that the query conditions or handling of binary values in
VARBINARY
columns may not be functioning as expected.2. What did you expect to see? (Required)
The query should return a maximum of five rows, reflecting the distinct records in t1, without any duplicates.
3. What did you see instead (Required)
See above.
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: