diff --git a/extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala b/extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala index 9d31ed92a7a..a89b60c5a83 100644 --- a/extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala +++ b/extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala @@ -1114,15 +1114,15 @@ class HiveCatalogRangerSparkExtensionSuite extends RangerSparkExtensionSuite { |SELECT * FROM $db1.$table1""".stripMargin)) interceptContains[AccessControlException]( - doAs( - someone, - sql( - s""" - |INSERT OVERWRITE DIRECTORY '$path' - |USING parquet - |SELECT * FROM $db1.$table1""".stripMargin)) - )(s"does not have [select] privilege on " + - s"[$db1/$table1/id,$db1/$table1/scope,[$path, $path/]]") + doAs( + someone, + sql( + s""" + |INSERT OVERWRITE DIRECTORY '$path' + |USING parquet + |SELECT * FROM $db1.$table1""".stripMargin)))( + s"does not have [select] privilege on " + + s"[$db1/$table1/id,$db1/$table1/scope,[$path, $path/]]") doAs(admin, sql(s"SELECT * FROM parquet.`$path`".stripMargin).explain(true)) interceptContains[AccessControlException](