HiveDecimalWritable hdw = new HiveDecimalWritable();
hdw.set(scratch.getBytes(bufferUsed), dec.getScale());
HiveDecimal hd = hdw.getHiveDecimal();
BigDecimal readValue = hd.bigDecimalValue();
assertEquals(value, readValue);
// Now test fastUpdate from the same serialized HiveDecimal
Decimal128 decRead = new Decimal128().fastUpdateFromInternalStorage(