From a51172c14475cc15c58ea625e4244a22135f456f Mon Sep 17 00:00:00 2001 From: Angerszhuuuu Date: Fri, 24 Nov 2023 15:50:30 +0800 Subject: [PATCH] Update PrivilegesBuilder.scala --- .../apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala b/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala index 224dd9cc5e7..d0f6e48ebe3 100644 --- a/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala +++ b/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala @@ -307,7 +307,7 @@ object PrivilegesBuilder { case ObjectFilterPlaceHolder(child) if child.nodeName == "ShowTables" => OperationType.SHOWTABLES case ObjectFilterPlaceHolder(child) if child.nodeName == "ShowNamespaces" => - OperationType.SHOWTABLES + OperationType.SHOWDATABASES case _: FilteredShowTablesCommand => OperationType.SHOWTABLES case _: FilteredShowFunctionsCommand => OperationType.SHOWFUNCTIONS case _: FilteredShowColumnsCommand => OperationType.SHOWCOLUMNS