nextdreamblue opened a new issue, #11884:
URL: https://github.com/apache/doris/issues/11884

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Description
   
   when show tables from xxx,i get table names unsort,for example:
   MySQL [tmp]> show table status;
   
+-------------+--------+---------+------------+---------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+-----------+----------+----------------+---------+
   | Name        | Engine | Version | Row_format | Rows    | Avg_row_length | 
Data_length | Max_data_length | Index_length | Data_free | Auto_increment | 
Create_time         | Update_time         | Check_time | Collation | Checksum | 
Create_options | Comment |
   
+-------------+--------+---------+------------+---------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+-----------+----------+----------------+---------+
   | part        | Doris  |    NULL | NULL       | 1400000 |              9 |   
 13599162 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:38:11 | 2022-08-15 17:38:26 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   | part3       | Doris  |    NULL | NULL       | 1400000 |             29 |   
 40797486 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:43:38 | 2022-08-15 17:44:02 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   | part1       | Doris  |    NULL | NULL       | 1400000 |              9 |   
 13599162 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:43:50 | 2022-08-15 17:43:57 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   | part3_test3 | Doris  |    NULL | NULL       | 1400000 |             29 |   
 40797486 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:43:38 | 2022-08-15 17:44:02 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   | part1_test3 | Doris  |    NULL | NULL       | 1400000 |             29 |   
 40797486 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:43:50 | 2022-08-15 17:43:57 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   | part1_test  | Doris  |    NULL | NULL       | 1400000 |              9 |   
 13599162 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:43:50 | 2022-08-15 17:43:57 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   | part3_test1 | Doris  |    NULL | NULL       | 1400000 |             29 |   
 40797486 |            NULL |         NULL |      NULL |           NULL | 
2022-08-15 17:43:38 | 2022-08-15 17:44:02 | NULL       | utf-8     |     NULL | 
NULL           | OLAP    |
   
+-------------+--------+---------+------------+---------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+---------------------+------------+-----------+----------+----------------+---------+
   7 rows in set (0.00 sec)
   
   but when show data, i can get table names which be sorted, for example:
   MySQL [tmp]> show data;
   +-------------+-------------+--------------+
   | TableName   | Size        | ReplicaCount |
   +-------------+-------------+--------------+
   | part        | 12.969 MB   | 12           |
   | part1       | 12.969 MB   | 12           |
   | part1_test  | 12.969 MB   | 12           |
   | part1_test3 | 38.908 MB   | 36           |
   | part3       | 38.908 MB   | 36           |
   | part3_test1 | 38.908 MB   | 36           |
   | part3_test3 | 38.908 MB   | 36           |
   | Total       | 194.538 MB  | 180          |
   | Quota       | 1024.000 TB | 1073741824   |
   | Left        | 1024.000 TB | 1073741644   |
   +-------------+-------------+--------------+
   10 rows in set (0.00 sec)
   
   i want to get result sorted by tablename when show table status like show 
data.
   
   ### Solution
   
   when show table status, sort result by tablenames.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to