Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4671

When parsing Avro schema, all fields that are not 'top level' are marked as nullable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      From the mailing list, there is an issue with ValidateRecord considering invalid JSON records to be valid when it is missing an 'inner field'. Given the following schema:

      {
        "name": "aRecord",
        "type": "record",
        "namespace": "a",
        "fields": [
          {
            "name": "a",
            "type": {
              "name": "bRecord",
              "type":"record",
              "fields": [
                { "name": "b", "type": "string"}
              ]
            }
          }
      
        ]
      }
      

      ValidateRecord will indicate that the following record is valid:

      {"a":{}}
      

        Attachments

          Activity

            People

            • Assignee:
              markap14 Mark Payne
              Reporter:
              markap14 Mark Payne
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: