Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29441

Unable to Alter table column type in spark.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.3.1
    • None
    • Spark Shell
    • spark -2.3

      hadoop -2.4

    Description

      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';

      Attachments

        Activity

          People

            Unassigned Unassigned
            prudhvirajchittiprolu prudhviraj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: