presto-hive/src/main/java/io/prestosql/plugin/hive/coercions/DecimalCoercers.java/DoubleToLongDecimalCoercer/applyCoercedValue
class DoubleToLongDecimalCoercer:        @Override
        protected void applyCoercedValue(BlockBuilder blockBuilder, Block block, int position)
        {
            toType.writeSlice(blockBuilder,
                    doubleToLongDecimal(fromType.getDouble(block, position), toType.getPrecision(), toType.getScale()));
        }