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

Python Optional UUIDs are not allowed

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.11.1
    • None
    • python
    • None

    Description

      If a union type of null and logical type of uuid is used, Avro will try to decode the object as a UUID and create a TypeError exception, which is not caught.

      Example Schema:

      {
        "name": "userId",
        "type": [
          "null",
          {
            "type": "string",
            "logicalType": "uuid"
          }
        ]
      }

      if the example schema is given a userId of None then the application will stop with an uncaught exception.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dwyoung Daniel Young
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment