Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17649#discussion_r111689097
  
    --- Diff: 
sql/core/src/test/resources/sql-tests/inputs/describe_tbleproperty_validation.sql
 ---
    @@ -0,0 +1,24 @@
    +CREATE TABLE table_with_comment (a STRING, b INT) COMMENT 'actual comment';
    +
    +DESC formatted table_with_comment;
    +
    +-- ALTER TABLE BY MODIFYING COMMENT
    +ALTER TABLE table_with_comment set tblproperties(comment = "modified 
comment");
    +
    +DESC formatted table_with_comment;
    +
    +-- DROP TEST TABLE
    +DROP TABLE table_with_comment;
    +
    +-- CREATE TABLE WITHOUT COMMENT
    +CREATE TABLE table_comment (a STRING, b INT);
    +
    +DESC formatted table_comment;
    +
    +-- ALTER TABLE BY ADDING COMMENT
    +ALTER TABLE table_comment set tblproperties(comment = "added comment");
    +
    +DESC formatted table_comment;
    +
    +-- DROP TEST TABLE
    +DROP TABLE table_comment;
    --- End diff --
    
    Also add another test case
    ```
    -- ALTER TABLE BY UNSETTING COMMENT
    ALTER TABLE table_comment unset tblproperties('comment');
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to