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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to