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

    https://github.com/apache/spark/pull/20696#discussion_r171623841
  
    --- Diff: 
sql/core/src/test/resources/sql-tests/results/change-column.sql.out ---
    @@ -291,16 +291,25 @@ ALTER TABLE partition_table PARTITION (c = 1) CHANGE 
COLUMN a new_a INT
     
     
     -- !query 30
    -DROP TABLE test_change
    +ALTER TABLE partition_table CHANGE COLUMN c c INT COMMENT 'this is column 
C'
     -- !query 30 schema
     struct<>
     -- !query 30 output
    -
    +org.apache.spark.sql.AnalysisException
    +Invalid column reference 'c', table data schema is 
'StructType(StructField(a,IntegerType,true), StructField(b,StringType,true))';
    --- End diff --
    
    We need a better error message here.


---

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

Reply via email to