Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-22606

Incorrect defaults in Avro alert schema

    Details

    • Story Points:
      1
    • Team:
      Alert Production

      Description

      Veljko Vujcic points out that version 2.0 of the alert schema contains a number of entries like:

      {"name": "diaObject", "type": ["lsst.diaObject", "null"], "default": null}
      

      However, the order of the type field should be reversed, per the Avro spec:

      Note that when a default value is specified for a record field whose type is a union, the type of the default value must match the first element of the union. Thus, for unions containing "null", the "null" is usually listed first, since the default value of such unions is typically null.

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                swinbank John Swinbank
                Reporter:
                swinbank John Swinbank
                Watchers:
                Darko Jevremovic, Eric Bellm, John Swinbank, Veljko Vujcic
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel