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

Sujith commented on SPARK-20023:
--------------------------------

@chenerlu, your point is right, after executing the alter command with newly 
added/modified table comment, the same is not reflecting when we execute desc 
formatted table query.
table comment which is now directly part of CatalogTable instance is not 
getting updated and old table comment was shown, to handle this issue while 
updating the table properties map with newly added/modified properties in 
CatalogTable instance also update the comment parameter in CatalogTable with 
the newly added/modified comment.

I raised PR after fixing this issue, https://github.com/apache/spark/pull/17649
 Please let me know for any suggestions.

> Can not see table comment when describe formatted table
> -------------------------------------------------------
>
>                 Key: SPARK-20023
>                 URL: https://issues.apache.org/jira/browse/SPARK-20023
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: chenerlu
>            Assignee: Xiao Li
>             Fix For: 2.2.0
>
>
> Spark 2.x implements create table by itself.
> https://github.com/apache/spark/commit/7d2ed8cc030f3d84fea47fded072c320c3d87ca7
> But in the implement mentioned above, it remove table comment from 
> properties, so user can not see table comment through run "describe formatted 
> table". Similarly, when user alters table comment, he still can not see the 
> change of table comment through run "describe formatted table".
> I wonder why we removed table comments, is this a bug?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to