0AyanamiRei commented on code in PR #64933:
URL: https://github.com/apache/doris/pull/64933#discussion_r3490241692
##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -739,17 +745,39 @@ public TListTableStatusResult
listTableStatus(TGetTablesParams params) throws TE
TTableStatus status = new TTableStatus();
status.setName(table.getName());
status.setType(table.getMysqlType());
- status.setEngine(table.getEngine());
status.setComment(table.getComment());
- status.setCreateTime(table.getCreateTime());
- status.setLastCheckTime(lastCheckTime / 1000);
- status.setUpdateTime(table.getUpdateTime() / 1000);
- status.setCheckTime(lastCheckTime / 1000);
- status.setCollation("utf-8");
- status.setRows(table.getCachedRowCount());
- status.setDataLength(table.getDataLength());
- status.setAvgRowLength(table.getAvgRowLength());
- status.setIndexLength(table.getIndexLength());
+ if (needTableStatusColumn(requiredColumns,
"ENGINE")) {
+ status.setEngine(table.getEngine());
+ }
+ if (needTableStatusColumn(requiredColumns,
"CREATE_TIME")) {
+ status.setCreateTime(table.getCreateTime());
+ }
+ if (needTableStatusColumn(requiredColumns,
"LAST_CHECK_TIME")) {
+ status.setLastCheckTime(lastCheckTime / 1000);
+ }
+ if (needTableStatusColumn(requiredColumns,
"UPDATE_TIME")) {
+ status.setUpdateTime(table.getUpdateTime() /
1000);
+ }
+ if (needTableStatusColumn(requiredColumns,
"CHECK_TIME")) {
Review Comment:
Fixed in 48fe249b48ddd2feee290119eb2c8a0cdca1d783 by setting last_check_time
when CHECK_TIME is requested and adding a CHECK_TIME-only projection unit test.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]