[improvement](meta) sort result by tablename when show table status like 'show data' (#11885)
This commit is contained in:
@ -4050,7 +4050,7 @@ public class Env {
|
||||
|
||||
// set table's default replication number.
|
||||
Map<String, String> tblProperties = Maps.newHashMap();
|
||||
tblProperties.put("default.replication_allocation", replicaAlloc.toCreateStmt());
|
||||
tblProperties.put("default." + PropertyAnalyzer.PROPERTIES_REPLICATION_ALLOCATION, replicaAlloc.toCreateStmt());
|
||||
table.setReplicaAllocation(tblProperties);
|
||||
|
||||
// log
|
||||
|
||||
@ -800,6 +800,10 @@ public class ShowExecutor {
|
||||
rows.add(row);
|
||||
}
|
||||
}
|
||||
// sort by table name
|
||||
rows.sort((x, y) -> {
|
||||
return x.get(0).compareTo(y.get(0));
|
||||
});
|
||||
resultSet = new ShowResultSet(showStmt.getMetaData(), rows);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user