Skip to content

Sqllogic test case(sqllogictest/test/select/select1.test) failed on tiflash #999

@lidezhu

Description

@lidezhu

The query: SELECT (SELECT count(*) FROM t1 AS x WHERE x.b<t1.b) FROM t1 WHERE (a>b-2 AND a<b+2) OR c>d ORDER BY 1; return wrong result when select from tiflash:
+-----------------------------------------------+
| (SELECT count(*) FROM t1 AS x WHERE x.b<t1.b) |
+-----------------------------------------------+
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
| 0 |
+-----------------------------------------------+

When select from tikv, it's result is
+-----------------------------------------------+
| (SELECT count(*) FROM t1 AS x WHERE x.b<t1.b) |
+-----------------------------------------------+
| 0 |
| 2 |
| 3 |
| 4 |
| 6 |
| 7 |
| 8 |
| 11 |
| 13 |
| 14 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 |
| 24 |
| 25 |
| 28 |
+-----------------------------------------------+

Metadata

Metadata

Assignees

Labels

priority/P0The issue has P0 priority.type/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions