From 3cbba422a6fa2130970b4def633c7cfe62d5c206 Mon Sep 17 00:00:00 2001 From: Angerszhuuuu Date: Wed, 1 Nov 2023 13:40:56 +0800 Subject: [PATCH] Update PrivilegesBuilder.scala --- .../apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala | 3 ++- 1 file changed, 2 insertions(+), 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 8334992800d..70d974097a6 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 @@ -122,8 +122,9 @@ object PrivilegesBuilder { privilegeObjects += PrivilegeObject(table) case p => + val newProjection = projectionList ++ p.inputSet.map(_.toAttribute) for (child <- p.children) { - buildQuery(child, privilegeObjects, projectionList, conditionList, spark) + buildQuery(child, privilegeObjects, newProjection, conditionList, spark) } } }