cloud-fan commented on code in PR #46734:
URL: https://github.com/apache/spark/pull/46734#discussion_r1624892730
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala:
##########
@@ -432,6 +445,10 @@ case class AlterTableChangeColumnCommand(
}.getOrElse(throw QueryCompilationErrors.cannotFindColumnError(name,
schema.fieldNames))
}
+ // Change the dataType of the column.
+ private def withNewType(column: StructField, dataType: DataType):
StructField =
+ column.copy(dataType = dataType)
Review Comment:
nit: This looks more concise than calling `withNewType`, do we really need
to create this function?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]