Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lidezhu opened this issue Aug 11, 2020 · 1 comment · Fixed by pingcap/tidb#19182
Closed
Assignees
Labels
priority/P0 The issue has P0 priority. type/bug The issue is confirmed as a bug.

Comments

@lidezhu
Copy link
Contributor

lidezhu commented Aug 11, 2020

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 |
+-----------------------------------------------+

@lidezhu
Copy link
Contributor Author

lidezhu commented Aug 11, 2020

Seems caused by this pr: pingcap/tidb#17232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/P0 The issue has P0 priority. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants