GitHub user xubo245 opened a pull request: https://github.com/apache/spark/pull/20250
[SPARK-23059][SQL][TEST] Correct some improper with view related method usage ## What changes were proposed in this pull request? Correct some improper with view related method usage Only change test cases like: ``` test("list global temp views") { try { sql("CREATE GLOBAL TEMP VIEW v1 AS SELECT 3, 4") sql("CREATE TEMP VIEW v2 AS SELECT 1, 2") checkAnswer(sql(s"SHOW TABLES IN $globalTempDB"), Row(globalTempDB, "v1", true) :: Row("", "v2", true) :: Nil) assert(spark.catalog.listTables(globalTempDB).collect().toSeq.map(_.name) == Seq("v1", "v2")) } finally { spark.catalog.dropTempView("v1") spark.catalog.dropGlobalTempView("v2") } } ``` ## How was this patch tested? See test case. You can merge this pull request into a Git repository by running: $ git pull https://github.com/xubo245/spark DropTempViewError Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20250.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20250 ---- commit 8e49445f68db89b8a01b3eeb9c6da74191bc9a86 Author: xubo245 <601450868@...> Date: 2018-01-12T15:34:32Z [SPARK-23059][SQL][TEST] Correct some improper with view related method usage ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org