[
https://issues.apache.org/jira/browse/SPARK-33650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-33650:
------------------------------------
Assignee: Apache Spark
> Misleading error from ALTER TABLE .. PARTITION for non-supported partition
> management table
> -------------------------------------------------------------------------------------------
>
> Key: SPARK-33650
> URL: https://issues.apache.org/jira/browse/SPARK-33650
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Maxim Gekk
> Assignee: Apache Spark
> Priority: Major
>
> For a V2 table that doesn't support partition management, ALTER TABLE ..
> ADD/DROP PARTITION throws misleading exception:
> {code:java}
> PartitionSpecs are not resolved;;
> 'AlterTableAddPartition [UnresolvedPartitionSpec(Map(id -> 1),None)], false
> +- ResolvedTable
> org.apache.spark.sql.connector.InMemoryTableCatalog@2fd64b11, ns1.ns2.tbl,
> org.apache.spark.sql.connector.InMemoryTable@5d3ff859
> org.apache.spark.sql.AnalysisException: PartitionSpecs are not resolved;;
> 'AlterTableAddPartition [UnresolvedPartitionSpec(Map(id -> 1),None)], false
> +- ResolvedTable
> org.apache.spark.sql.connector.InMemoryTableCatalog@2fd64b11, ns1.ns2.tbl,
> org.apache.spark.sql.connector.InMemoryTable@5d3ff859
> at
> org.apache.spark.sql.catalyst.analysis.CheckAnalysis.failAnalysis(CheckAnalysis.scala:50)
> at
> org.apache.spark.sql.catalyst.analysis.CheckAnalysis.failAnalysis$(CheckAnalysis.scala:49)
> {code}
> The error should say that the table doesn't support partition management.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]