maropu commented on pull request #29010:
URL: https://github.com/apache/spark/pull/29010#issuecomment-654219970


   Thanks for your contribution, @StefanXiepj ! btw, which Spark version you 
used? I think the current master does not accept the alter command;
   ```
   scala> sql("""alter table cast_exception_test change column c1 c1 string""")
   org.apache.spark.sql.AnalysisException: ALTER TABLE CHANGE COLUMN is not 
supported for changing column 'c1' with type 'IntegerType' to 'c1' with type 
'StringType';
   ```


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



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

Reply via email to