You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JAPI-499 BinaryRecordReader support U8 to Decimal (hpcc-systems#599)
- Added flag to support treating U8s as BigDecimals
- Created JUnit for U8 to Decimal
Signed-off-by: James McMullan [email protected]
Signed-off-by: James McMullan [email protected]
messages.addMessage("Warning: Possible unsigned overflow in column: '" + fd.getFieldName() + "'. Convert values to BigInteger via org.hpccsystems.commons.utils.extractUnsigned8 if necessary." );
372
+
fieldValue = Long.valueOf(intValue);
373
+
if (intValue < 0)
374
+
{
375
+
messages.addMessage("Warning: Possible unsigned overflow in column: '" + fd.getFieldName()
376
+
+ "'. Convert values to BigInteger via org.hpccsystems.commons.utils.extractUnsigned8 if necessary, "
377
+
+ " or call BinaryRecordReader.setUseDecimalForUnsigned8() before reading to convert unsigned8 values to BigDecimal values.");
0 commit comments