cloud-fan commented on a change in pull request #29339:
URL: https://github.com/apache/spark/pull/29339#discussion_r519928705
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
##########
@@ -971,4 +978,21 @@ trait CheckAnalysis extends PredicateHelper {
failOnOuterReferenceInSubTree(p)
}}
}
+
+ // Make sure that table is able to alter partition.
+ private def checkAlterTablePartition(
+ table: Table, parts: Seq[PartitionSpec]): Unit = {
Review comment:
shall we also check that the partition columns in `PartitionSpec` exists
in table's partition schema?
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]