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

Specify that varints should be encoded shortest possible way

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

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.11.0
    • None
    • spec
    • None

    Description

      Spec is underspecified. It doesn't say whether non-canonical varint serializations are allowed (i. e. whether it is okey to serialize number "5" as two bytes). I propose to explicitly forbid such serializations. I. e. to require reader to fail when reading such serialization. This will ensure (at least for simple schemas) that equal values serialize to equal binary strings.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            safinaskar Askar Safin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment