Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Nov 9, 2023
1 parent f34ebdb commit 4b96799
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,12 @@ object TableCommands extends CommandSpecs[TableCommandSpec] {
val ReplaceData = {
val cmd = "org.apache.spark.sql.catalyst.plans.logical.ReplaceData"
val actionTypeDesc = ActionTypeDesc(actionType = Some(UPDATE))
val uriDescs = Seq(UriDesc("tableSpec", classOf[TableSpecURIExtractor]))
val tableDesc =
TableDesc(
"originalTable",
classOf[DataSourceV2RelationTableExtractor],
actionTypeDesc = Some(actionTypeDesc))
TableCommandSpec(cmd, Seq(tableDesc), queryDescs = Seq(queryQueryDesc), uriDescs = uriDescs)
TableCommandSpec(cmd, Seq(tableDesc), queryDescs = Seq(queryQueryDesc))
}

val UpdateTable = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1286,16 +1286,6 @@ class HiveCatalogRangerSparkExtensionSuite extends RangerSparkExtensionSuite {
s"does not have [select] privilege on [$db1/$table1/id,$db1/$table1/scope], " +
s"[create] privilege on [$db1/$table2/id,$db1/$table2/scope], " +
s"[write] privilege on [[$path, $path/]]")
interceptContains[AccessControlException](
doAs(
someone,
sql(
s"""
|ALTER TABLE $db1.$table1
|SET LOCATION '$path'
|""".stripMargin)))(
s"does not have [alter] privilege on [$db1/$table1], " +
s"[write] privilege on [[$path, $path/]]")
}
}
}
Expand Down

0 comments on commit 4b96799

Please sign in to comment.