[
https://issues.apache.org/jira/browse/AVRO-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243897#comment-15243897
]
SK Liew commented on AVRO-1830:
-------------------------------
The Avro 1.8.0 specification states that:
{quote}
All metadata properties that start with "avro." are reserved. The following
file metadata properties are currently used:
avro.schema contains the schema of objects stored in the file, as JSON data
(required).
avro.codec the name of the compression codec used to compress blocks, as a
string. Implementations are required to support the following codecs: "null"
and "deflate". If codec is absent, it is assumed to be "null". The codecs are
described with more detail below.
{quote}
To implement the requirement above, in the case when it is not defined (when
avro.codec is not specified in metadata, and that's when
$data->{meta}{'avro.codec'} is undef), I think it should default to the string
"null".
> Avro-Perl DataFileReader chokes when avro.codec is absent
> ---------------------------------------------------------
>
> Key: AVRO-1830
> URL: https://issues.apache.org/jira/browse/AVRO-1830
> Project: Avro
> Issue Type: Bug
> Components: perl
> Affects Versions: 1.8.0
> Reporter: SK Liew
> Priority: Minor
> Attachments: Avro-1830.patch
>
>
> When a container does not specify its "avro.codec", it should be assumed to
> be "null". An exception is thrown when I try to read such a container using
> Avro::DataFileReader. The error happens at Avro/DataFileReader.pm line 101.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)