You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Oscar Westra van Holthe - Kind (Jira)" <ji...@apache.org> on 2025/06/13 08:37:00 UTC
[jira] [Updated] (AVRO-4110) Double Values Fail when using Min/Max
[ https://issues.apache.org/jira/browse/AVRO-4110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oscar Westra van Holthe - Kind updated AVRO-4110:
-------------------------------------------------
Fix Version/s: 1.12.1
> 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)