cloud-fan commented on a change in pull request #27444: [SPARK-30614][SQL] The 
native ALTER COLUMN syntax should change one property at a time
URL: https://github.com/apache/spark/pull/27444#discussion_r374480585
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala
 ##########
 @@ -89,20 +85,23 @@ class ResolveSessionCatalog(
             throw new AnalysisException("" +
               "ALTER COLUMN ... FIRST | ALTER is only supported with v2 
tables.")
           }
+
+          val colName = a.column(0)
+          val dataType = a.dataType.getOrElse(v1Table.schema(colName).dataType)
 
 Review comment:
   shall we consider case sensitivity?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to