Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/12872#discussion_r62029815
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLViewSuite.scala
---
@@ -37,11 +37,21 @@ class SQLViewSuite extends QueryTest with SQLTestUtils
with TestHiveSingleton {
sqlContext.sql(s"DROP TABLE IF EXISTS jt")
}
- test("nested views") {
- withView("jtv1", "jtv2") {
+ test("nested views (interleaved with temporary views)") {
+ withView("jtv1", "jtv2", "jtv3", "temp_jtv1", "temp_jtv2",
"temp_jtv3") {
--- End diff --
@clockfly had helped verify that `DROP VIEW` actually handles temporary
table, because internally `DROP VIEW` is translated to `DropTable`, which
handles both persistent and temporary table, and temporary table is just
temporary view. (OK, this is really confusing now...)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]