[ https://issues.apache.org/jira/browse/AVRO-4110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17955234#comment-17955234 ]
ASF subversion and git services commented on AVRO-4110: ------------------------------------------------------- Commit b8a3655fef9901e3d043e830f6ff6fb5f543fda7 in avro's branch refs/heads/main from rdifrango [ https://gitbox.apache.org/repos/asf?p=avro.git;h=b8a3655fef ] AVRO-4110: Double Values Fail when using Min/Max (#3292) > 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: 1h 40m > 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)