You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/01/25 07:15:00 UTC

[jira] [Updated] (AVRO-3307) Specify that varints should be encoded shortest possible way

     [ https://issues.apache.org/jira/browse/AVRO-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov updated AVRO-3307:
--------------------------------------------
    Priority: Minor  (was: Major)

> Specify that varints should be encoded shortest possible way
> ------------------------------------------------------------
>
>                 Key: AVRO-3307
>                 URL: https://issues.apache.org/jira/browse/AVRO-3307
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: spec
>    Affects Versions: 1.11.0
>            Reporter: Askar Safin
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)