You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2023/10/20 05:57:00 UTC
[jira] [Resolved] (SPARK-44837) Improve error message for ALTER TABLE ALTER COLUMN on partition columns in non-delta tables
[ https://issues.apache.org/jira/browse/SPARK-44837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk resolved SPARK-44837.
------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 42524
[https://github.com/apache/spark/pull/42524]
> 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: Michael Zhang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
>
> {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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org