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

support order by clause in show data statement. #45676

Open
immutablecodes opened this issue May 15, 2024 · 2 comments · May be fixed by #45849
Open

support order by clause in show data statement. #45676

immutablecodes opened this issue May 15, 2024 · 2 comments · May be fixed by #45849

Comments

@immutablecodes
Copy link

immutablecodes commented May 15, 2024

Feature request

Is your feature request related to a problem? Please describe.

I ususally have to find the biggest disk usage table in my work, this information usually can be found in show data statement, but the data type of 'size' field in the esult schema is formatted to human readable string, make it difficult to sort.

Describe the solution you'd like

  1. change the data type of 'size' field in the esult schema from string to bigint.
  2. support order by clause in show data statement.

Describe alternatives you've considered

Additional context

@wangsimo0
Copy link
Contributor

good catch. for your scenario, maybe information_schema.tables will be easier to use.

@immutablecodes
Copy link
Author

good catch. for your scenario, maybe information_schema.tables will be easier to use.

good point, but I can't found full information, can you show me how to construct the corresponding SQL? including with and without table to the show data statement.

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

Successfully merging a pull request may close this issue.

2 participants