miland-db opened a new pull request, #53508: URL: https://github.com/apache/spark/pull/53508
### What changes were proposed in this pull request? In this PR I propose a fix to avoid overwriting user defined comments. ### Why are the changes needed? When user creates a view with `SCHEMA EVOLUTION`, and then changes the comments on view columns in the UI, by using `DESCRIBE`, they are able to see new comments, but after executing a query on a view, comment values are reversed to a values from the underlying table (schema evolution enabled). In the proposed fix, if the column name is changed, comments from the table will be adopted (consistent with evolution semantics). ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit test in `SQLViewTestSuite`. ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
