dtenedor opened a new pull request, #36745: URL: https://github.com/apache/spark/pull/36745
### What changes were proposed in this pull request? Restrict DEFAULT columns to allowlist of supported data source types. Example: ``` > create table t(a string) using avro > alter table t add column(b int default 42) AnalysisException: Failed to execute command because target data source type avro does not support assigning DEFAULT column values ``` ### Why are the changes needed? This change is necessary for correctness because each data source allowing DEFAULT column values must include support for returning these values when missing in the corresponding storage. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? This PR adds unit test coverage. -- 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]
