Github user jiangxb1987 commented on a diff in the pull request:
https://github.com/apache/spark/pull/15717#discussion_r86811947
--- Diff: sql/core/src/test/resources/sql-tests/inputs/change-column.sql ---
@@ -0,0 +1,50 @@
+-- Create the origin table
+CREATE TABLE test_change(a Int, b String, c Int);
+CREATE VIEW test_view(a, b, c) AS
+SELECT * FROM VALUES (1, "one", 11), (null, "two", 22) AS testData(a, b,
c);
--- End diff --
We have to make the column `a` nullable here, otherwise it can't be
coverted to `StructField(a,IntegerType,true,{comment: newComment})`
---
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]