cloud-fan commented on a change in pull request #32831:
URL: https://github.com/apache/spark/pull/32831#discussion_r657978293
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
##########
@@ -375,6 +375,20 @@ abstract class SQLViewTestSuite extends QueryTest with
SQLTestUtils {
}
}
}
+
+ test("SPARK-35685: Prompt recreating view message") {
+ withTable("t") {
+ sql("CREATE TABLE t(i INT, j INT) USING json")
+ val viewName = createView("v", "SELECT * FROM t")
+ withView(viewName) {
+ sql("SELECT * FROM v").show()
+ sql("DROP TABLE t")
+ sql("CREATE TABLE t(a INT, b INT) USING json")
+ sql("ALTER VIEW `v` AS SELECT * FROM t")
Review comment:
the test should check the error message, before altering the view...
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]