dtenedor opened a new pull request, #36778:
URL: https://github.com/apache/spark/pull/36778

   ### What changes were proposed in this pull request?
   
   Extend DEFAULT column support in ALTER TABLE ALTER COLUMNS commands to 
include V2 data sources.
   
   (Note: this depends on https://github.com/apache/spark/pull/36771.)
   
   Example:
   
   ```
   > create or replace table t (a string default 'abc', b string) using 
$v2Source
   > insert into t values (default)
   > alter table t alter column b set default 'def'
   > insert into t values ("ghi")
   > Select * from t
   "abc", null,
   "ghi", "def"
   ```
   
   ### Why are the changes needed?
   
   This makes V2 data sources easier to use and extend.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes.
   
   ### How was this patch tested?
   
   This PR includes new 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: 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

Reply via email to