Github user jiangxb1987 commented on a diff in the pull request:
https://github.com/apache/spark/pull/16168#discussion_r91235259
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLViewSuite.scala
---
@@ -448,19 +476,105 @@ class SQLViewSuite extends QueryTest with
SQLTestUtils with TestHiveSingleton {
}
}
+ test("Using view after change the origin view") {
+ withView("v1", "v2") {
+ sql("CREATE VIEW v1 AS SELECT id FROM jt")
+ sql("CREATE VIEW v2 AS SELECT * FROM v1")
+ withTable("jt2", "jt3") {
+ // Don't change the view schema
+ val df2 = (1 until 10).map(i => i + i).toDF("id")
--- End diff --
Good point! I'll add the case.
---
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]