apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pramod Immaneni (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXMALHAR-2263) Offsets in AbstractFileInputOperator should be long rather than int
Date Mon, 17 Oct 2016 21:51:58 GMT

    [ https://issues.apache.org/jira/browse/APEXMALHAR-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15583598#comment-15583598
] 

Pramod Immaneni commented on APEXMALHAR-2263:
---------------------------------------------

Why can't we have both the long and int and deprecate the int. The value for the int offset
also gets updated along with the long but would give bad results if the offset count cross
integer limits. In next major version the int can be removed.

> Offsets in AbstractFileInputOperator should be long rather than int
> -------------------------------------------------------------------
>
>                 Key: APEXMALHAR-2263
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2263
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>          Components: adapters other
>            Reporter: Munagala V. Ramanath
>            Assignee: Matt Zhang
>
> Offsets in AbstractFileInputOperator use the int type which means files with more that
(2**31 -1) records will cause overflows and mysterious failures.
> Should be changed to use long.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message