[ https://issues.apache.org/jira/browse/AVRO-4110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated AVRO-4110: --------------------------------- Labels: pull-request-available (was: ) > Double Values Fail when using Min/Max > ------------------------------------- > > Key: AVRO-4110 > URL: https://issues.apache.org/jira/browse/AVRO-4110 > Project: Apache Avro > Issue Type: Bug > Components: java > Affects Versions: 1.12.0 > Reporter: Ron DiFrango > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > I was working on integrating Avro 1.12.0 into Jackson 3.x as described > [here|https://github.com/FasterXML/jackson-dataformats-binary/issues/514] and > the first issue I ran into is that in the case of Doubles, it's converting > them into float values > [here|https://github.com/apache/avro/blob/main/lang/java/avro/src/main/java/org/apache/avro/generic/PrimitivesArrays.java#L549-L554] > which fails it returns either {{0}} for Double.MIN_VALUE or {{Infinity}} for > Double.MAX_VALUE which isn't correct. > The code instead should use doubleValue. > See > [here|https://github.com/FasterXML/jackson-dataformats-binary/blob/master/avro/src/test/java/tools/jackson/dataformat/avro/interop/arrays/ListWithPrimitiveWrapperArrayTest.java#L52-L53] > for the test in question. -- This message was sent by Atlassian Jira (v8.20.10#820010)