You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/12/03 17:12:02 UTC

[jira] [Commented] (SPARK-33650) Misleading error from ALTER TABLE .. PARTITION for non-supported partition management table

    [ https://issues.apache.org/jira/browse/SPARK-33650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243372#comment-17243372 ] 

Apache Spark commented on SPARK-33650:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/30594

> 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
>            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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org