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

ASF GitHub Bot updated ARROW-6218:
----------------------------------
    Labels: pull-request-available  (was: )

> [Java] Add UINT type test in integration to avoid potential overflow
> --------------------------------------------------------------------
>
>                 Key: ARROW-6218
>                 URL: https://issues.apache.org/jira/browse/ARROW-6218
>             Project: Apache Arrow
>          Issue Type: Test
>          Components: Java
>            Reporter: Ji Liu
>            Assignee: Ji Liu
>            Priority: Critical
>              Labels: pull-request-available
>
> As per discussion [https://github.com/apache/arrow/pull/5002]
> For UINT type, when write/read json data in integration test, it extend data 
> type(i.e. Long->BigInteger, Int->Long) to avoid potential overflow.
> Like UINT8 the write side and read side code like this:
>  
> {code:java}
> case UINT8:
>   generator.writeNumber(UInt8Vector.getNoOverflow(buffer, index));
>   break;{code}
>  
> {code:java}
> BigInteger value = parser.getBigIntegerValue();
> buf.writeLong(value.longValue());
> {code}
> Should add a test to avoid potential overflow in the data transfer process.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to