We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
What did you do? for a field with index, such as fa, query with both max and min, such as select max(fa), min(fa) from table_name
What did you expect to see? result comes out very quickly
What did you see instead? query running without any comeout. but when run for single max(fa) or min(fa), result comes out in a second
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)? v2.1.13
tidb-server -V
select tidb_version();
The text was updated successfully, but these errors were encountered:
Thanks for your reporting. TiDB only rewrites single max/min to sort + limit 1 currently, I'm gonna fix this.
max/min
sort + limit 1
Sorry, something went wrong.
francis0407
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do?
for a field with index, such as fa, query with both max and min, such as select max(fa), min(fa) from table_name
What did you expect to see?
result comes out very quickly
What did you see instead?
query running without any comeout.
but when run for single max(fa) or min(fa), result comes out in a second
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?v2.1.13
The text was updated successfully, but these errors were encountered: