-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] trino couldn't read Iceberg table with timestamp column created by spark #4743
Comments
Shall we fix this in 0.6.0? |
The problem still exists if using origin spark Iceberg connector, cc @jerryshao @diqiu50 |
I see. We can defer this issue to the next release. |
Trino's default @mchades The |
is there other way to resolve this? I'm not sure if this is the right way . |
We need to first determine what the problem is. The type of |
Timestamp is transformed to parquet TIMESTAMPTZ_MICROS in https://github.com/apache/iceberg/blob/main/parquet/src/main/java/org/apache/iceberg/parquet/TypeToMessageType.java#L138-L143 case TIMESTAMP:
if (((TimestampType) primitive).shouldAdjustToUTC()) {
return Types.primitive(INT64, repetition).as(TIMESTAMPTZ_MICROS).id(id).named(name);
} else {
return Types.primitive(INT64, repetition).as(TIMESTAMP_MICROS).id(id).named(name);
} |
…mestamp in the Iceberg catalog. (#4893) ### What changes were proposed in this pull request? Fix the default precision of time and timestamp in the Iceberg catalog. It causes Trino to be unable to read Iceberg tables with data of time and timestamp ### Why are the changes needed? Fix: #4743 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? New UT, IT
…mestamp in the Iceberg catalog. (#4936) ### What changes were proposed in this pull request? Fix the default precision of time and timestamp in the Iceberg catalog. It causes Trino to be unable to read Iceberg tables with data of time and timestamp ### Why are the changes needed? Fix: #4743 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? New UT, IT Co-authored-by: Yuhui <[email protected]>
Version
main branch
Describe what's wrong
trino couldn't read Iceberg partition table created by spark
Error message and/or stacktrace
Query 20240828_134434_01832_9eicb failed: Could not serialize column 'hire_date' of type 'timestamp(3)' at position 1:4
How to reproduce
Spark sql:
trino:
Additional context
No response
The text was updated successfully, but these errors were encountered: