dtenedor commented on pull request #35690:
URL: https://github.com/apache/spark/pull/35690#issuecomment-1058387995


   > This PR doesn't seem to have the full body yet, what is your release 
target for this, @dtenedor and @gengliangwang ? I'm curious about the general 
error handling.
   > 
   > * Creating `NULL` default value for `NOT NULL` column
   > * Type mismatch between `default value literal` and column type.
   > * Upcasting or not in case of type mismatch
   
   These are good questions.
   
   * The future plan for `NOT NULL` columns is to require a `DEFAULT` value. If 
no `DEFAULT` value is provided, the engine will throw an error. We can also 
return an error in the case of a provided `DEFAULT NULL` value for a `NOT NULL` 
column.
   * The engine can perform an explicit type coercion from the provided type to 
the required type, e.g. integer to floating-point. If these types are not 
coercible in this way, the engine can return an error, e.g. floating-point to 
boolean.


-- 
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]

Reply via email to