gengliangwang commented on code in PR #49590:
URL: https://github.com/apache/spark/pull/49590#discussion_r1932899014
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -117,6 +117,13 @@
},
"sqlState" : "42604"
},
+ "AVRO_CANNOT_WRITE_NULL_FIELD" : {
+ "message" : [
+ "The record to be written to Avro contains null value for non-null field
<name> with schema <schema> from Avro schema.",
Review Comment:
Cannot write null value for field "<fieldName>", which is defined as
non-null (<schema>) in the Avro schema.
To allow null values for this field, provide an Avro schema that includes
"null" (e.g., a union type)
using the 'avroSchema' option.
--
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]