paimon-presto-common/src/main/java/org/apache/paimon/presto/PrestoPageSourceBase.java [217:236]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                BigDecimal decimal = ((Decimal) value).toBigDecimal();
                prestoType.writeLong(
                        output, encodeShortScaledValue(decimal, decimalType.getScale()));
            } else if (prestoType.equals(TIMESTAMP)) {
                prestoType.writeLong(
                        output,
                        ((Timestamp) value)
                                .toLocalDateTime()
                                .atZone(ZoneId.systemDefault())
                                .toInstant()
                                .toEpochMilli());
            } else if (prestoType.equals(TIME)) {
                prestoType.writeLong(output, (int) value * 1_000);
            } else {
                throw new PrestoException(
                        GENERIC_INTERNAL_ERROR,
                        format("Unhandled type for %s: %s", javaType.getSimpleName(), prestoType));
            }
        } else if (javaType == double.class) {
            prestoType.writeDouble(output, ((Number) value).doubleValue());
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



paimon-presto-common/src/main/java/org/apache/paimon/presto/PrestoTypeUtils.java [257:276]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                BigDecimal decimal = ((Decimal) value).toBigDecimal();
                prestoType.writeLong(
                        output, encodeShortScaledValue(decimal, decimalType.getScale()));
            } else if (prestoType.equals(TIMESTAMP)) {
                prestoType.writeLong(
                        output,
                        ((Timestamp) value)
                                .toLocalDateTime()
                                .atZone(ZoneId.systemDefault())
                                .toInstant()
                                .toEpochMilli());
            } else if (prestoType.equals(TIME)) {
                prestoType.writeLong(output, (int) value * 1_000);
            } else {
                throw new PrestoException(
                        GENERIC_INTERNAL_ERROR,
                        format("Unhandled type for %s: %s", javaType.getSimpleName(), prestoType));
            }
        } else if (javaType == double.class) {
            prestoType.writeDouble(output, ((Number) value).doubleValue());
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



