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 2021/02/27 17:37:00 UTC
[jira] [Commented] (SPARK-34561) Cannot drop/add columns from/to a
dataset of v2 `DESCRIBE TABLE`
[ https://issues.apache.org/jira/browse/SPARK-34561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292192#comment-17292192 ]
Apache Spark commented on SPARK-34561:
--------------------------------------
User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/31676
> Cannot drop/add columns from/to a dataset of v2 `DESCRIBE TABLE`
> ----------------------------------------------------------------
>
> Key: SPARK-34561
> URL: https://issues.apache.org/jira/browse/SPARK-34561
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Maxim Gekk
> Priority: Major
>
> Dropping a column from a dataset of v2 `DESCRIBE TABLE` fails with:
> {code:java}
> Resolved attribute(s) col_name#102,data_type#103 missing from col_name#29,data_type#30,comment#31 in operator !Project [col_name#102, data_type#103]. Attribute(s) with the same name appear in the operation: col_name,data_type. Please check if the right attribute(s) are used.;
> !Project [col_name#102, data_type#103]
> +- LocalRelation [col_name#29, data_type#30, comment#31]{code}
> The code below demonstrates the issue:
> {code:java}
> val tbl = s"${catalogAndNamespace}tbl"
> withTable(tbl) {
> sql(s"CREATE TABLE $tbl (c0 INT) USING $v2Format")
> val description = sql(s"DESCRIBE TABLE $tbl")
> val noComment = description.drop("comment")
> }
> {code}
--
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