Skip to content

Commit 0c83e37

Browse files
committed
Fix tests
1 parent f729d8d commit 0c83e37

File tree

1 file changed

+4
-2
lines changed
  • sql/core/src/test/scala/org/apache/spark/sql/execution/command

1 file changed

+4
-2
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)