choucmei commented on code in PR #25:
URL:
https://github.com/apache/incubator-paimon-trino/pull/25#discussion_r1331747467
##########
paimon-trino-common/src/main/java/org/apache/paimon/trino/TrinoPageSourceBase.java:
##########
@@ -176,11 +178,17 @@ private void appendTo(Type type, DataType logicalType,
Object value, BlockBuilde
BigDecimal decimal = ((Decimal) value).toBigDecimal();
type.writeLong(output, encodeShortScaledValue(decimal,
decimalType.getScale()));
} else if (type.equals(TIMESTAMP_MILLIS)) {
+ // TimestampType mapped to ShortTimestampType of
TIMESTAMP_MILLIS
type.writeLong(
output,
((Timestamp) value).getMillisecond() *
MICROSECONDS_PER_MILLISECOND);
- } else if (type.equals(TIME_MICROS)) {
- type.writeLong(output, (int) value *
MICROSECONDS_PER_MILLISECOND);
Review Comment:
Because TIME_MILLIS can't be mapped.
https://github.com/apache/incubator-paimon-trino/blob/45e003a1180fd959f59d11037677e742139f15fe/paimon-trino-common/src/main/java/org/apache/paimon/trino/TrinoTypeUtils.java#L150
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]