[ https://issues.apache.org/jira/browse/AVRO-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17863028#comment-17863028 ]
ASF subversion and git services commented on AVRO-1463: ------------------------------------------------------- Commit 695695478f497b347defec30fb58c9bf2c7a134d in avro's branch refs/heads/dependabot/cargo/lang/rust/env_logger-0.11.3 from José Joaquín Atria [ https://gitbox.apache.org/repos/asf?p=avro.git;h=695695478 ] AVRO-1463 [Perl] Quietly validate undefined values (#2975) > Undefined values cause warnings when unions with null serialized > ---------------------------------------------------------------- > > Key: AVRO-1463 > URL: https://issues.apache.org/jira/browse/AVRO-1463 > Project: Apache Avro > Issue Type: Bug > Components: perl > Reporter: John Karp > Assignee: José Joaquín Atria > Priority: Minor > Fix For: 1.12.0 > > Attachments: AVRO-1463.patch > > > This code produces warnings: > {noformat} > $enc = ''; > $schema = Avro::Schema->parse(q(["long","null"])); > Avro::BinaryEncoder->encode( > schema => $schema, > data => undef, > emit_cb => sub { $enc .= ${ $_[0] } }, > ); > {noformat} > {noformat} > Use of uninitialized value $data in pack at > /home/johnkarp/git/avro/lang/perl/blib/lib/Avro/Schema.pm line 285. > Use of uninitialized value $data in string eq at > /home/johnkarp/git/avro/lang/perl/blib/lib/Avro/Schema.pm line 287. > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)