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

Improve error message for ALTER TABLE ALTER COLUMN on partition columns in non-delta tables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.3, 3.1.3, 3.2.4, 3.3.2, 3.4.1, 4.0.0
    • 4.0.0
    • SQL

    Description

       

      -- hive table
      sql("create table some_table (x int, y int, z int) using parquet PARTITIONED BY (x, y) " +
      "location '/Users/someone/runtime/tmp-data/some_table'")
      sql("alter table some_table alter column x comment 'some-comment'").collect()
      Can't find column `x` given table data columns [`z`].

      Improve error message to indicate to users that the command is not supported on partition columns in non-delta tables.

       

      Attachments

        Issue Links

          Activity

            People

              m.zhang Michael Zhang
              m.zhang Michael Zhang
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: