[
https://issues.apache.org/jira/browse/AVRO-3159?focusedWorklogId=782141&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-782141
]
ASF GitHub Bot logged work on AVRO-3159:
----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Jun/22 18:10
Start Date: 16/Jun/22 18:10
Worklog Time Spent: 10m
Work Description: RyanSkraba commented on PR #1709:
URL: https://github.com/apache/avro/pull/1709#issuecomment-1157987883
Thanks for the contribution!
Issue Time Tracking
-------------------
Worklog Id: (was: 782141)
Time Spent: 0.5h (was: 20m)
> Error in AVRO specification
> ---------------------------
>
> Key: AVRO-3159
> URL: https://issues.apache.org/jira/browse/AVRO-3159
> Project: Apache Avro
> Issue Type: Bug
> Components: doc
> Reporter: Dave Cole
> Assignee: Oscar Westra van Holthe - Kind
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.11.1
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> On [http://avro.apache.org/docs/current/spec.html#binary_encode_primitive]
> the example given for encoding Unions appears to have an error:
> {quote}For example, the union schema ["null","string"] would encode:
> null as zero (the index of "null" in the union):
> 00
> the string "a" as one (the index of "string" in the union, encoded as hex
> 02), followed by the serialized string:
> 02 02 61
> {quote}
> Surely the "string" in the union is encoded as hex 01... It is defined as
> "the zero-based position within the union of the schema". The list has only
> two entries, so 02 is not a valid index.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)