gengliangwang commented on code in PR #50561: URL: https://github.com/apache/spark/pull/50561#discussion_r2038580646
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala: ########## @@ -536,6 +536,8 @@ class DataSourceV2Strategy(session: SparkSession) extends Strategy with Predicat case a: AlterTableCommand if a.table.resolved => val table = a.table.asInstanceOf[ResolvedTable] + ResolveTableConstraints.validateCatalogForTableChange( Review Comment: Note: there will be new tests for this one when the `alter table with constraint` is supported end-to-end. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org