-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add support for writing timestamp_ntz type in Delta #18913
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
Conversation
ce7a6dd
to
967ae8c
Compare
0dfb632
to
4805c17
Compare
7b1590a
to
149d70a
Compare
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
return new ProtocolEntry( | ||
readerVersion, | ||
writerVersion, | ||
readerFeatures.isEmpty() ? Optional.empty() : Optional.of(readerFeatures), |
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.
Why discern between empty Set of features and no set of features?
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.
ProtocolEntry
has the following logic, so Optional.of(Set.of())
throws an exception for lower reader & writer versions. We could change the logic alternatively.
if (minReaderVersion < MIN_VERSION_SUPPORTS_READER_FEATURES && readerFeatures.isPresent()) {
throw new IllegalArgumentException("readerFeatures must not exist when minReaderVersion is less than " + MIN_VERSION_SUPPORTS_READER_FEATURES);
}
if (minWriterVersion < MIN_VERSION_SUPPORTS_WRITER_FEATURES && writerFeatures.isPresent()) {
throw new IllegalArgumentException("writerFeatures must not exist when minWriterVersion is less than " + MIN_VERSION_SUPPORTS_WRITER_FEATURES);
}
149d70a
to
99bc09d
Compare
99bc09d
to
1cbb6a2
Compare
Rebased on master to resolve conflicts. |
Description
Add support for writing timestamp_ntz type in Delta
Fixes #16927
Release notes
(x) Release notes are required, with the following suggested text: