Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2368

Provide way to distinguish whether a Schema.Field has a default value or its default is null

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.0
    • Component/s: java
    • Labels:
      None

      Description

      After making Schema.Field#defaultValue package private, there is no way to distinguish whether a Field has a default value of 'null' or has no default at all. This is a breaking change, notably affecting Hortonworks Schema Registry. See discussion here: https://github.com/hortonworks/registry/pull/547

      I propose we should make that method public and still deprecated. Otherwise I don't see a clear way to release a version of the Hortonworks registry that will be compatible with both Avro 1.8.x and 1.9.0.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              igreene Ivan Greene
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: