From f1715c8f2d09afcf3bd20df45fcb59ff40809a4d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:46:52 +0800 Subject: [PATCH] [BugFix] show catalog property for user (backport #49415) (#49834) Co-authored-by: yandongxiao --- .../main/java/com/starrocks/sql/ast/ShowUserPropertyStmt.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fe/fe-core/src/main/java/com/starrocks/sql/ast/ShowUserPropertyStmt.java b/fe/fe-core/src/main/java/com/starrocks/sql/ast/ShowUserPropertyStmt.java index 8197f2c639835..e121e8218d4f3 100644 --- a/fe/fe-core/src/main/java/com/starrocks/sql/ast/ShowUserPropertyStmt.java +++ b/fe/fe-core/src/main/java/com/starrocks/sql/ast/ShowUserPropertyStmt.java @@ -74,6 +74,7 @@ public List> getRows(ConnectContext connectContext) { UserProperty userProperty = authenticationManager.getUserProperty(user); rows.add(Lists.newArrayList(UserProperty.PROP_MAX_USER_CONNECTIONS, String.valueOf(userProperty.getMaxConn()))); + rows.add(Lists.newArrayList(UserProperty.PROP_CATALOG, userProperty.getCatalog())); rows.add(Lists.newArrayList(UserProperty.PROP_DATABASE, userProperty.getDatabase())); for (Map.Entry entry : userProperty.getSessionVariables().entrySet()) { rows.add(Lists.newArrayList(String.format("%s.%s", "session", entry.getKey()), entry.getValue()));