[ https://issues.apache.org/jira/browse/AVRO-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17113304#comment-17113304 ]
Hudson commented on AVRO-2070: ------------------------------ SUCCESS: Integrated in Jenkins build AvroJava #881 (See [https://builds.apache.org/job/AvroJava/881/]) AVRO-2070 tolerate any numbers in GenericDatumWriter while writing (dan: [https://github.com/apache/avro/commit/2c238747755a19fe6acce107b6fb1ce7d1984563]) * (edit) lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumWriter.java AVRO-2070 Added test (dan: [https://github.com/apache/avro/commit/74ad244741a391450610f4d273172707ae2b9a80]) * (edit) lang/java/avro/src/test/java/org/apache/avro/generic/TestGenericDatumWriter.java AVRO-2070 Make import order same as master (dan: [https://github.com/apache/avro/commit/97e05457f55e3f51dd8279df1247be65125d767a]) * (edit) lang/java/avro/src/test/java/org/apache/avro/generic/TestGenericDatumWriter.java > Tolerate any Number when writing primitive values in Java in > GenericDatumWriter > ------------------------------------------------------------------------------- > > Key: AVRO-2070 > URL: https://issues.apache.org/jira/browse/AVRO-2070 > Project: Apache Avro > Issue Type: Improvement > Components: java > Reporter: Daniil Gitelson > Assignee: Rabi Kumar K C > Priority: Major > Fix For: 1.10.0 > > > Tolerating any Number (instead of concrete Long, Double, Float) makes > possible to use mutable Number implmentation for performance reasons > (specially for primitive collection iterations) > Currently, this only works for int only: > {code:java} > // Here it works > case INT: out.writeInt(((Number)datum).intValue()); break; > // This should be replaced with ((Number)datum).longValue() etc > case LONG: out.writeLong((Long)datum); break; > case FLOAT: out.writeFloat((Float)datum); break; > case DOUBLE: out.writeDouble((Double)datum); break; > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)