@@ -147,10 +147,10 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
147
147
s " ' $viewName' is a view not a table " )
148
148
assertAnalysisError(
149
149
s " ALTER TABLE $viewName ADD IF NOT EXISTS PARTITION (a='4', b='8') " ,
150
- s " $viewName is a temp view not table " )
150
+ s " $viewName is a temp view. 'ALTER TABLE ... ADD PARTITION ...' expects a table " )
151
151
assertAnalysisError(
152
152
s " ALTER TABLE $viewName DROP PARTITION (a='4', b='8') " ,
153
- s " $viewName is a temp view not table " )
153
+ s " $viewName is a temp view. 'ALTER TABLE ... DROP PARTITION ...' expects a table " )
154
154
155
155
// For the following v2 ALERT TABLE statements, unsupported operations are checked first
156
156
// before resolving the relations.
@@ -175,7 +175,7 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
175
175
val e2 = intercept[AnalysisException ] {
176
176
sql(s """ LOAD DATA LOCAL INPATH " $dataFilePath" INTO TABLE $viewName""" )
177
177
}.getMessage
178
- assert(e2.contains(s " $viewName is a temp view not table " ))
178
+ assert(e2.contains(s " $viewName is a temp view. 'LOAD DATA' expects a table " ))
179
179
assertNoSuchTable(s " TRUNCATE TABLE $viewName" )
180
180
val e3 = intercept[AnalysisException ] {
181
181
sql(s " SHOW CREATE TABLE $viewName" )
@@ -214,7 +214,7 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
214
214
e = intercept[AnalysisException ] {
215
215
sql(s """ LOAD DATA LOCAL INPATH " $dataFilePath" INTO TABLE $viewName""" )
216
216
}.getMessage
217
- assert(e.contains(" default.testView is a view not table" ))
217
+ assert(e.contains(" default.testView is a view. 'LOAD DATA' expects a table" ))
218
218
219
219
e = intercept[AnalysisException ] {
220
220
sql(s " TRUNCATE TABLE $viewName" )
0 commit comments