You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Liya Fan (Jira)" <ji...@apache.org> on 2020/09/21 03:29:00 UTC

[jira] [Resolved] (ARROW-10017) [Java] LargeMemoryUtil.checkedCastToInt has buggy logic

     [ https://issues.apache.org/jira/browse/ARROW-10017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liya Fan resolved ARROW-10017.
------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

Issue resolved by pull request 8194
[https://github.com/apache/arrow/pull/8194]

> [Java] LargeMemoryUtil.checkedCastToInt has buggy logic
> -------------------------------------------------------
>
>                 Key: ARROW-10017
>                 URL: https://issues.apache.org/jira/browse/ARROW-10017
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.0.1
>            Reporter: Patrick Woody
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> LargeMemoryUtil.checkedCastToInt does checked conversion from long -> int if BoundsChecking is enabled. However, it looks like there is a bug in the logic:
> length <= Integer.{color:#9876aa}MAX_VALUE {color}|| length >= Integer.{color:#9876aa}MIN_VALUE{color}
> is always true.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)