From 3e9cd3a8b967b6a10f806e39fe203ea93ec6110f Mon Sep 17 00:00:00 2001 From: Mingyu Chen Date: Wed, 10 Jan 2024 14:53:49 +0800 Subject: [PATCH] [minor](jdbc) fix wrong log and add more info (#29557) --- .../apache/doris/datasource/jdbc/client/JdbcMySQLClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcMySQLClient.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcMySQLClient.java index 3273f4b759..231af739e3 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcMySQLClient.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcMySQLClient.java @@ -169,8 +169,8 @@ public class JdbcMySQLClient extends JdbcClient { tableSchema.add(field); } } catch (SQLException e) { - throw new JdbcClientException("failed to get table name list from jdbc for table %s:%s", e, tableName, - Util.getRootCauseMessage(e)); + throw new JdbcClientException("failed to get jdbc columns info for table %.%s: %s", + e, dbName, tableName, Util.getRootCauseMessage(e)); } finally { close(rs, conn); }