[
https://issues.apache.org/jira/browse/SPARK-44837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruifeng Zheng reassigned SPARK-44837:
-------------------------------------
Assignee: Ruifeng Zheng
> 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.0.3, 3.1.3, 3.2.4, 3.3.2, 3.4.1, 4.0.0
> Reporter: Michael Zhang
> Assignee: Ruifeng Zheng
> Priority: Minor
>
>
> {code:java}
> -- 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`].{code}
> 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: [email protected]
For additional commands, e-mail: [email protected]