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 543a9d6d847..19b446b5fea 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 @@ -137,7 +137,8 @@ object PrivilegesBuilder { case _ => val childCols = columnPrune(projectionList ++ conditionList, child.outputSet) if (childCols.isEmpty) { - buildQuery(child, + buildQuery( + child, privilegeObjects, p.inputSet.map(_.toAttribute).toSeq, conditionList,