gengliangwang commented on code in PR #50839: URL: https://github.com/apache/spark/pull/50839#discussion_r2087218944
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/constraints.scala: ########## @@ -129,15 +129,13 @@ case class CheckConstraint( val predicate = new V2ExpressionBuilder(child, true).buildPredicate().orNull val enforced = userProvidedCharacteristic.enforced.getOrElse(true) val rely = userProvidedCharacteristic.rely.getOrElse(false) - // TODO(SPARK-51903): Change the status to VALIDATED when we support validation on ALTER TABLE - val validateStatus = Constraint.ValidationStatus.UNVALIDATED Constraint .check(name) .predicateSql(condition) .predicate(predicate) .rely(rely) .enforced(enforced) - .validationStatus(validateStatus) + .validationStatus(Constraint.ValidationStatus.VALID) Review Comment: Yes, after https://github.com/apache/spark/pull/50772, the constraint is always enforced -- 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