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

Provide a better comparison utility to check query results #163

Open
yibin87 opened this issue Sep 19, 2022 · 0 comments
Open

Provide a better comparison utility to check query results #163

yibin87 opened this issue Sep 19, 2022 · 0 comments

Comments

@yibin87
Copy link
Contributor

yibin87 commented Sep 19, 2022

Current check can't work correctly for order by + limit queries :
MySQL specification doesn't guaratee the order of identical values.
Order by alone will generate sort operator, and will execute in TiDB only.
While order by + limit will generate two level TopN operators, one in coprocessor, one in TiDB, which might introduce implementation diefferences. And they are all right according to MySQL specification. But different orders of identical values will fail our copr test.
https://dev.mysql.com/doc/refman/5.6/en/limit-optimization.html

One current workaround pr, which removed limit operator, to pass the test. #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant