Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20696#discussion_r172354978
--- 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 --
how about
```
Can't find column `c` given table data columns [`a`, `b`]
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]