Bug:Error value convert for java type LongTimestampWithTimeZone
- Dominant language
- Java
- Stars
- 47
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
There may be a bug in TrinoPageSource.java appendTo method,
checkArgument(type.equals(TIMESTAMP_TZ_MILLIS));
Timestamp timestamp = (org.apache.paimon.data.Timestamp) value;
type.writeObject(
output, fromEpochMillisAndFraction(timestamp.getMillisecond(), 0, UTC_KEY));
when javaType is LongTimestampWithTimeZone.class, type is TIMESTAMP_TZ_MICROS but not TIMESTAMP_TZ_MILLIS?
Contributor guide
No contributing guide indexed for this repository
Research direction
Open TrinoPageSource.java and inspect the appendTo method around the TIMESTAMP_TZ_MILLIS check and timestamp conversion. Compare that path with the LongTimestampWithTimeZone java type and TIMESTAMP_TZ_MICROS case; done means the connector handles the reported type without rejecting or mis-converting the value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100