Michael Zhang created SPARK-44837:
-------------------------------------

             Summary: Improve error message for ALTER TABLE ALTER COLUMN on 
partition columns in non-delta tables
                 Key: SPARK-44837
                 URL: https://issues.apache.org/jira/browse/SPARK-44837
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.4.1
            Reporter: Michael Zhang


{{{{}}}}
{code:java}

{code}
{{-- 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.}}

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to