szehon-ho opened a new pull request, #50864: URL: https://github.com/apache/spark/pull/50864
### What changes were proposed in this pull request? "Alter table alter column" to pass in V2 Expression to DSV2. Like the similar changes (https://github.com/apache/spark/pull/50593) and (https://github.com/apache/spark/pull/50701), the existing logic is rewritten to use the main Analyzer loop to get this expression, instead of manual call to ResolveDefaultColumns to analyze. We enhance the UpdateColumnValue (TableChanges API) to return DefaultValue (which contains the V2 Expression), in addition to the existing API returning String representation of the default value. ### Why are the changes needed? DSV2 (example, Iceberg/Delta) should get modeled V2 Expression to set default value. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added tests in DataSourceV2DataFrameSuite ### 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: 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