ByteString bytes = (ByteString)raw;
int precision = type.attribute(DecimalAttribute.PRECISION);
int scale = type.attribute(DecimalAttribute.SCALE);
StringBuilder sb = new StringBuilder();
ConversionHelperBigDecimal.decodeToString(bytes.toByteArray(), 0, precision, scale, AkibanAppender.of(sb));
return new BigDecimalWrapperImpl(sb.toString());
}