[
https://issues.apache.org/jira/browse/AVRO-4110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17979922#comment-17979922
]
ASF subversion and git services commented on AVRO-4110:
-------------------------------------------------------
Commit e967b349c7b6aade5ca446f5cec0d044a511305a in avro's branch
refs/heads/branch-1.12 from rdifrango
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e967b349c7 ]
AVRO-4110: Double Values Fail when using Min/Max (#3292)
(cherry picked from commit b8a3655fef9901e3d043e830f6ff6fb5f543fda7)
> 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
> Assignee: Ron DiFrango
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.1, 1.13.0
>
> 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)