-
Notifications
You must be signed in to change notification settings - Fork 394
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
[#5341] fix (trino-connector): Adjust the default precision of the time and timestamp types for different catalogs #5368
Conversation
return TimestampType.TIMESTAMP_MICROS; | ||
} | ||
} else if (Name.TIME == type.name()) { | ||
return TimeType.TIME_MICROS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the Time
type in Trino has micro seconds precision?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,the default time precision in PG is micro seconds
if (timestampType.hasTimeZone()) { | ||
unsupportedType = true; | ||
} else if (Type.Name.TIME == type.name()) { | ||
unsupportedType = true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If (timestampType.hasTimeZone() || Type.Name.TIME == type.name()) {
throw new TrinoException(
GravitinoErrorCode.GRAVITINO_UNSUPPORTED_GRAVITINO_DATATYPE,
"Unsupported gravitino datatype: " + type);
}
…me and timestamp types for different catalogs (#5368) ### What changes were proposed in this pull request? Adjust the default precision of the time and timestamp types for different catalogs. keep the same precision as the original connector ### Why are the changes needed? Fix: #5341 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Update IT
…the time and timestamp types for different catalogs (apache#5368) ### What changes were proposed in this pull request? Adjust the default precision of the time and timestamp types for different catalogs. keep the same precision as the original connector ### Why are the changes needed? Fix: apache#5341 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Update IT
What changes were proposed in this pull request?
Adjust the default precision of the time and timestamp types for different catalogs. keep the same precision as the original connector
Why are the changes needed?
Fix: #5341
Does this PR introduce any user-facing change?
No
How was this patch tested?
Update IT