cloud-fan commented on a change in pull request #27315: 
[SPARK-30535][SQL][FOLLOWUP] Update error message for ALTER TABLE when table is 
resolved to temp view
URL: https://github.com/apache/spark/pull/27315#discussion_r369440731
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/results/change-column.sql.out
 ##########
 @@ -195,7 +195,7 @@ ALTER TABLE temp_view CHANGE a TYPE INT COMMENT 'this is 
column a'
 struct<>
 -- !query 20 output
 org.apache.spark.sql.AnalysisException
-temp_view is a temp view not a table.; line 1 pos 0
+Cannot alter a view with ALTER TABLE. Please use ALTER VIEW instead; line 1 
pos 0
 
 Review comment:
   This is a good point. How about just `Cannot alter a temp view with ALTER 
TABLE.` as the error message?

----------------------------------------------------------------
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]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to