cloud-fan commented on a change in pull request #26107: [SPARK-28885][SQL]
Follow ANSI store assignment rules in table insertion by default
URL: https://github.com/apache/spark/pull/26107#discussion_r334897075
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/types/DataType.scala
##########
@@ -456,6 +456,8 @@ object DataType {
true
}
+ case (_: NullType, _) if storeAssignmentPolicy == ANSI => true
Review comment:
I think we can write null to any nullable column even if it's strict policy.
We can have a followup PR to discuss it further.
----------------------------------------------------------------
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]