@@ -147,10 +147,10 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
147147 s " ' $viewName' is a view not a table " )
148148 assertAnalysisError(
149149 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 " )
151151 assertAnalysisError(
152152 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 " )
154154
155155 // For the following v2 ALERT TABLE statements, unsupported operations are checked first
156156 // before resolving the relations.
@@ -175,7 +175,7 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
175175 val e2 = intercept[AnalysisException ] {
176176 sql(s """ LOAD DATA LOCAL INPATH " $dataFilePath" INTO TABLE $viewName""" )
177177 }.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 " ))
179179 assertNoSuchTable(s " TRUNCATE TABLE $viewName" )
180180 val e3 = intercept[AnalysisException ] {
181181 sql(s " SHOW CREATE TABLE $viewName" )
@@ -214,7 +214,7 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
214214 e = intercept[AnalysisException ] {
215215 sql(s """ LOAD DATA LOCAL INPATH " $dataFilePath" INTO TABLE $viewName""" )
216216 }.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" ))
218218
219219 e = intercept[AnalysisException ] {
220220 sql(s " TRUNCATE TABLE $viewName" )
0 commit comments