As per discussion #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:
case UINT8:
generator.writeNumber(UInt8Vector.getNoOverflow(buffer, index));
break;
BigInteger value = parser.getBigIntegerValue();
buf.writeLong(value.longValue());
Should add a test to avoid potential overflow in the data transfer process.
Reporter: Ji Liu / @tianchen92
Assignee: Ji Liu / @tianchen92
PRs and other links:
Note: This issue was originally created as ARROW-6218. Please see the migration documentation for further details.