presto-rcfile/src/main/java/io/prestosql/rcfile/text/DecimalEncoding.java/DecimalEncoding/encodeValue
class DecimalEncoding:    private void encodeValue(Block block, int position, SliceOutput output)
    {
        if (isShortDecimal(type)) {
            output.writeBytes(utf8Slice(Decimals.toString(type.getLong(block, position), type.getScale())));
        }
        else {
            output.writeBytes(utf8Slice(Decimals.toString(type.getSlice(block, position), type.getScale())));
        }
    }