panbingkun commented on code in PR #46731: URL: https://github.com/apache/spark/pull/46731#discussion_r1613022902
########## sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala: ########## @@ -76,7 +76,8 @@ class ResolveSessionCatalog(val catalogManager: CatalogManager) catalog, ident, "ALTER COLUMN with qualified column") } if (a.nullable.isDefined) { - throw QueryCompilationErrors.alterColumnWithV1TableCannotSpecifyNotNullError() + throw QueryCompilationErrors.unsupportedTableOperationError( + catalog, ident, "ALTER COLUMN specify NOT NULL") Review Comment: dito -- 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