[
https://issues.apache.org/jira/browse/FLINK-4572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471484#comment-15471484
]
ASF GitHub Bot commented on FLINK-4572:
---------------------------------------
Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/2469
Looks good. Does it make sense to add to extend the
`MathUtils.checkedDownCast(...)` function, or add a
`MathUtils.checkedSignedDownCast(...)` function?
> Convert to negative in LongValueToIntValue
> ------------------------------------------
>
> Key: FLINK-4572
> URL: https://issues.apache.org/jira/browse/FLINK-4572
> Project: Flink
> Issue Type: Bug
> Components: Gelly
> Affects Versions: 1.2.0
> Reporter: Greg Hogan
> Assignee: Greg Hogan
> Priority: Minor
>
> The Gelly drivers expect that scale 32 edges, represented by the lower 32
> bits of {{long}} values, can be converted to {{int}} values. Values between
> 2^31 and 2^32 - 1 should be converted to negative integers, which is not
> supported by {{MathUtils.checkedDownCast}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)