michaelzhan-db opened a new pull request, #42524: URL: https://github.com/apache/spark/pull/42524
### What changes were proposed in this pull request? Improving the error message for `ALTER TABLE ALTER COLUMN` command on partition columns. ### Why are the changes needed? Currently, if a user executes `ALTER TABLE ALTER COLUMN` on a partition column, the error message provided is cryptic and does not help users. The improved error message makes it clear that the command is not supported for partition columns. ### Does this PR introduce _any_ user-facing change? <!-- Note that it means *any* user-facing change including all aspects such as the documentation fix. If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible. If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master. If no, write 'No'. --> ### How was this patch tested? All tests pass. -- 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]
