From a16b6829e6afed3efe2c503cca04340529ce0e98 Mon Sep 17 00:00:00 2001 From: Tiewei Fang Date: Tue, 24 Dec 2024 10:40:58 +0800 Subject: [PATCH] [fix](TrinoConnector) fix the error message when querying a not-existent table with TrinoConnector (#45799) Problem Summary: fix the error message when querying a not-existent table with TrinoConnector --- .../datasource/trinoconnector/TrinoConnectorExternalTable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/trinoconnector/TrinoConnectorExternalTable.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/trinoconnector/TrinoConnectorExternalTable.java index 27f9b8086a9cef..007ad864da3af8 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/trinoconnector/TrinoConnectorExternalTable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/trinoconnector/TrinoConnectorExternalTable.java @@ -108,7 +108,8 @@ public Optional initSchema() { qualifiedTable.asSchemaTableName(), Optional.empty(), Optional.empty())); } if (!connectorTableHandle.isPresent()) { - throw new RuntimeException(String.format("Table does not exist: %s.%s.%s", qualifiedTable)); + throw new RuntimeException(String.format("Table does not exist: %s.%s.%s", trinoConnectorCatalog.getName(), + dbName, name)); } // 4. Get ColumnHandle