File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sql/core/src/test/scala/org/apache/spark/sql/execution/command Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2305,7 +2305,8 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
23052305 val e = intercept[AnalysisException ] {
23062306 sql(" ALTER TABLE tmp_v ADD COLUMNS (c3 INT)" )
23072307 }
2308- assert(e.message.contains(" 'tmp_v' is a view not a table" ))
2308+ assert(e.message.contains(
2309+ " tmp_v is a temp view. 'ALTER TABLE ... ADD COLUMNS' expects a table." ))
23092310 }
23102311 }
23112312
@@ -2315,7 +2316,8 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
23152316 val e = intercept[AnalysisException ] {
23162317 sql(" ALTER TABLE v1 ADD COLUMNS (c3 INT)" )
23172318 }
2318- assert(e.message.contains(" ALTER ADD COLUMNS does not support views" ))
2319+ assert(e.message.contains(
2320+ " default.v1 is a view. 'ALTER TABLE ... ADD COLUMNS' expects a table." ))
23192321 }
23202322 }
23212323
You can’t perform that action at this time.
0 commit comments