You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by dk...@apache.org on 2020/05/26 13:59:11 UTC
[avro] branch master updated: Always read even if skipped (readNull
missing)
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new d3a2b14 Always read even if skipped (readNull missing)
d3a2b14 is described below
commit d3a2b149aa92608956fb0b163eb1bea06ef2c05a
Author: Valerian <et...@gmail.com>
AuthorDate: Sun Mar 29 17:34:24 2020 +0100
Always read even if skipped (readNull missing)
If readNull not runned, ValidatingDecoder will complain
---
.../avro/src/main/java/org/apache/avro/generic/GenericDatumReader.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumReader.java b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumReader.java
index cd5f4b5..0f6cafe 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumReader.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumReader.java
@@ -615,6 +615,7 @@ public class GenericDatumReader<D> implements DatumReader<D> {
in.readBoolean();
break;
case NULL:
+ in.readNull();
break;
default:
throw new RuntimeException("Unknown type: " + schema);