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

    https://github.com/apache/spark/pull/15717#discussion_r92117893
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/change-column.sql ---
    @@ -0,0 +1,53 @@
    +-- Create the origin table
    +CREATE TABLE test_change(a INT, b STRING, c INT);
    +DESC test_change;
    +
    +-- Change column name (not supported yet)
    +ALTER TABLE test_change CHANGE a a1 INT;
    +ALTER TABLE test_change CHANGE b b1 STRING, c c1 INT;
    +DESC test_change;
    +
    +-- Change column dataType (not supported yet)
    +ALTER TABLE test_change CHANGE a a STRING;
    +ALTER TABLE test_change CHANGE b b INT, c c DOUBLE;
    +DESC test_change;
    +
    +-- Change column position (not supported yet)
    +ALTER TABLE test_change CHANGE a a INT AFTER b;
    +ALTER TABLE test_change CHANGE b b STRING FIRST, c c INT AFTER b;
    +DESC test_change;
    +
    +-- Change column comment
    +ALTER TABLE test_change CHANGE a a INT COMMENT 'this is column a';
    +ALTER TABLE test_change CHANGE b b STRING COMMENT '#*02?`', c c INT 
COMMENT '';
    +DESC test_change;
    +
    +-- Don't change anything.
    +ALTER TABLE test_change CHANGE a a INT COMMENT 'this is column a';
    +DESC test_change;
    +
    +-- Change a invalid column
    +ALTER TABLE test_change CHANGE invalid_col invalid_col INT;
    +DESC test_change;
    +
    +-- Change column name/dataType/position/comment together (not supported 
yet)
    +ALTER TABLE test_change CHANGE a a1 STRING COMMENT 'this is column a1' 
AFTER b;
    +DESC test_change;
    +
    +-- Case sensitive
    --- End diff --
    
    Please update the comment. This test case is to check the behavior when 
`spark.sql.caseSensitive` is off. 


---
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