This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new f12e627acf8 [fix](stats) table not exists error msg not print objects
name #27074 (#27463)
f12e627acf8 is described below
commit f12e627acf80baa29598f4867b2a03b391b3358e
Author: AKIRA <[email protected]>
AuthorDate: Thu Nov 23 23:29:30 2023 +0900
[fix](stats) table not exists error msg not print objects name #27074
(#27463)
---
.../main/java/org/apache/doris/analysis/ShowTableStatsStmt.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowTableStatsStmt.java
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowTableStatsStmt.java
index 7cf34dcad30..3a80daebc91 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowTableStatsStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowTableStatsStmt.java
@@ -85,21 +85,21 @@ public class ShowTableStatsStmt extends ShowStmt {
}
CatalogIf<DatabaseIf> catalog =
Env.getCurrentEnv().getCatalogMgr().getCatalog(tableName.getCtl());
if (catalog == null) {
- ErrorReport.reportAnalysisException("Catalog: {} not exists",
tableName.getCtl());
+ ErrorReport.reportAnalysisException(String.format("Catalog: %s not
exists", tableName.getCtl()));
}
DatabaseIf<TableIf> db = catalog.getDb(tableName.getDb()).orElse(null);
if (db == null) {
- ErrorReport.reportAnalysisException("DB: {} not exists",
tableName.getDb());
+ ErrorReport.reportAnalysisException(String.format("DB: %s not
exists", tableName.getDb()));
}
table = db.getTable(tableName.getTbl()).orElse(null);
if (table == null) {
- ErrorReport.reportAnalysisException("Table: {} not exists",
tableName.getTbl());
+ ErrorReport.reportAnalysisException(String.format("Table: %s not
exists", tableName.getTbl()));
}
if (partitionNames != null) {
String partitionName = partitionNames.getPartitionNames().get(0);
Partition partition = table.getPartition(partitionName);
if (partition == null) {
- ErrorReport.reportAnalysisException("Partition: {} not
exists", partitionName);
+ ErrorReport.reportAnalysisException(String.format("Partition:
%s not exists", partitionName));
}
}
if (!Env.getCurrentEnv().getAccessManager()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]