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

orderby doesn't use the index when to init stats #52466

Closed
hawkingrei opened this issue Apr 10, 2024 · 0 comments · Fixed by #52462
Closed

orderby doesn't use the index when to init stats #52466

hawkingrei opened this issue Apr 10, 2024 · 0 comments · Fixed by #52462
Labels

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

SQL in the init stats like load bucket/topn have orderby. but when to explain the SQL, all of them do not use index to orderby

2. What did you expect to see? (Required)

use index

3. What did you see instead (Required)

not use index

4. What is your TiDB version? (Required)

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

Successfully merging a pull request may close this issue.

2 participants