[ 
https://issues.apache.org/jira/browse/AVRO-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243186#comment-15243186
 ] 

Alex Moundalexis commented on AVRO-1830:
----------------------------------------

[undef|http://perldoc.perl.org/functions/undef.html], rather:

{code}
my $codec = $data->{meta}{'avro.codec'} || undef;
{code}

> 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)

Reply via email to