Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-50906

Add nullability check for if inputs of to_avro align with schema

    XMLWordPrintableJSON

Details

    Description

      Previously, we don't explicitly check when input of `to_avro` is `null` but the schema does not allow `null`. As a result, a NPE will be raised in this situation. This PR adds the check during serialization before writing to avro and raises user-facing error if above occurs. 

      Attachments

        Issue Links

          Activity

            People

              fanyue.xia Fanyue Xia
              fanyue.xia Fanyue Xia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: