You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2019/10/26 22:36:00 UTC

[jira] [Updated] (SPARK-29441) Unable to Alter table column type in spark.

     [ https://issues.apache.org/jira/browse/SPARK-29441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean R. Owen updated SPARK-29441:
---------------------------------
    Issue Type: Improvement  (was: Bug)

> Unable to Alter table column type in spark.
> -------------------------------------------
>
>                 Key: SPARK-29441
>                 URL: https://issues.apache.org/jira/browse/SPARK-29441
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Shell
>    Affects Versions: 2.3.1
>         Environment: spark -2.3
> hadoop -2.4
>            Reporter: prudhviraj
>            Priority: Major
>
> 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