Skip to content

Commit

Permalink
Update RangerSparkExtensionSuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Nov 6, 2023
1 parent 96f2006 commit 47b79c7
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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](
Expand Down

0 comments on commit 47b79c7

Please sign in to comment.