beliefer opened a new pull request #24792: [WIP][SPARK-27943][SQL] Add new 
feature create table could specify column with default constraint
URL: https://github.com/apache/spark/pull/24792
 
 
   ## What changes were proposed in this pull request?
   
   Default constraint with column is ANSI standard.
   
   Hive 3.0+ has supported default constraint 
ref:https://issues.apache.org/jira/browse/HIVE-18726
   
   But Spark SQL implement this feature not yet.
   
   This PR is related to [https://github.com/apache/spark/pull/24372](24372). 
If this PR finish, unselected target column can be inserted into the default 
value, while running `insert into`.
   
   After this PR,  I will continue open other PR about default constraint, like 
alter table, desc table.
   
   There exists some issue in this PR:
   
   First, how to check a number specified by somebody compliance with the 
accuracy and scope of the data type, like float, double.
   
   Second, some code is not very elegant, I hope to improve it with your 
suggestions.
   
   ## How was this patch tested?
   
   UT
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to