You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/09/08 05:47:44 UTC

[GitHub] [incubator-kyuubi] Yikf commented on a diff in pull request #3446: [KYUUBI #3445] Flaky Test: Temp view should be deleted after test suite

Yikf commented on code in PR #3446:
URL: https://github.com/apache/incubator-kyuubi/pull/3446#discussion_r965524333


##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtensionSuite.scala:
##########
@@ -529,21 +529,29 @@ abstract class RangerSparkExtensionSuite extends AnyFunSuite
   test("[KYUUBI #3343] pass temporary view creation") {
     val tempView = "temp_view"
     val globalTempView = "global_temp_view"
-    doAs("denyuser", sql(s"CREATE TEMPORARY VIEW $tempView AS select * from values(1)"))
 
-    doAs(
-      "denyuser",
-      sql(s"CREATE OR REPLACE TEMPORARY VIEW $tempView" +
-        s" AS select * from values(1)"))
+    withCleanTmpResources(Seq((tempView, "view"), (s"global_temp.$globalTempView", "view"))) {

Review Comment:
   sure



-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org