yaooqinn commented on code in PR #4660:
URL: https://github.com/apache/kyuubi/pull/4660#discussion_r1156752607
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala:
##########
@@ -707,4 +707,21 @@ class HiveCatalogRangerSparkExtensionSuite extends
RangerSparkExtensionSuite {
sql(s"SHOW TABLES IN $db").queryExecution.optimizedPlan.stats
}
}
+
+ test("[KYUUBI #4658] INSERT OVERWRITE DIRECTORY did check query permission")
{
+ val db1 = "default"
+ val table = "src"
+
+ withCleanTmpResources(Seq((s"$db1.$table", "table"))) {
+ doAs("bob", sql(s"CREATE TABLE IF NOT EXISTS $db1.$table (id int, name
string)"))
Review Comment:
It's better to use `admin` for table preparation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]