Skip to content

Commit 60df218

Browse files
committed
fix buildFunctions for command
1 parent 5b20926 commit 60df218

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/PrivilegesBuilder.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,7 @@ object PrivilegesBuilder {
284284
val spec = getTableCommandSpec(command)
285285
val functionPrivAndOpType = spec.queries(plan)
286286
.map(plan => buildFunctions(plan, spark))
287-
functionPrivAndOpType.map(_._1)
288-
.reduce(_ ++ _)
289-
.foreach(functionPriv => inputObjs += functionPriv)
287+
inputObjs ++= functionPrivAndOpType.flatMap(_._1)
290288

291289
case plan => plan transformAllExpressions {
292290
case hiveFunction: Expression if isKnownFunction(hiveFunction) =>

0 commit comments

Comments
 (0)