You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "prudhviraj (Jira)" <ji...@apache.org> on 2019/10/11 15:20:00 UTC
[jira] [Created] (SPARK-29441) Unable to Alter table column type in
spark.
prudhviraj created SPARK-29441:
----------------------------------
Summary: Unable to Alter table column type in spark.
Key: SPARK-29441
URL: https://issues.apache.org/jira/browse/SPARK-29441
Project: Spark
Issue Type: Bug
Components: Spark Shell
Affects Versions: 2.3.1
Environment: spark -2.3
hadoop -2.4
Reporter: prudhviraj
Unable to alter table column type in spark.
scala> spark.sql("""alter table tablename change col1 col1 string""")
org.apache.spark.sql.AnalysisException: ALTER TABLE CHANGE COLUMN is not supported for changing column 'col1' with type 'LongType' to 'col1' with type 'StringType';
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org