sandeep-katta0102 commented on PR #37191:
URL: https://github.com/apache/spark/pull/37191#issuecomment-1185113196

   @wangyum does the below tests pass(using `avroSchemaUrl` as option) with 
these changes  ?
   
   `  test("SPARK-XXXX: support avro schema and schema url with invalid 
defaults") {
       val avroSchemaUrl = testFile("test_default_null.avsc")
       val result = spark.read.option("avroSchemaUrl", avroSchemaUrl)
               .format("avro")
               .load(testAvro)
               .collect()
       result.foreach(println(_))
     }`
   
   where `test_default_null` file content is as below
   `{
     "type" : "record",
     "name" : "test_schema",
     "fields" : [{
       "name" : "string",
       "type" : "string",
       "doc"  : "Meaningless string of characters",
       "default" : null
     }]
   }`


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