-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Support smallint, tinyint, date type of Cassandra #15147
Support smallint, tinyint, date type of Cassandra #15147
Conversation
8d3ebef
to
f069ba4
Compare
@@ -127,6 +134,8 @@ public static CassandraType getCassandraType(DataType.Name name) | |||
return COUNTER; | |||
case CUSTOM: | |||
return CUSTOM; | |||
case DATE: |
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.
better to document these types support in cassandra.rst
30e6cf7
to
e5d59c4
Compare
LGTM. I'd defer to @highker if there's any more comments. |
@fgwang7w the integration test failure is not related to PR. |
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.
Could you sign CLA?
this.toCassandraDate = value -> DATE_FORMATTER.print(TimeUnit.DAYS.toMillis(value)); | ||
} | ||
else { | ||
this.toCassandraDate = value -> LocalDate.fromDaysSinceEpoch(toIntExact(value)); |
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.
remove this
and squash two commits into one? |
f2c8b9e
to
03becae
Compare
@highker done, and CI failure is not related to the PR. |
Unfortunately this has resurfaced the joda libraries which were taken out in #14046 :( |
Cherry-pick of trinodb/trino#141. This is also a fix for prestodb#15147 which tried to backport Trino prestodb#141 but that backporting was incomplete and caused the Cassandra tests to fail. Resolves: prestodb#15749 Co-authored-by: Yuya Ebihara <ebyhry@gmail.com>
Cherry-pick of trinodb/trino#141. This is also a fix for #15147 which tried to backport Trino #141 but that backporting was incomplete and caused the Cassandra tests to fail. Resolves: #15749 Co-authored-by: Yuya Ebihara <ebyhry@gmail.com>
Support smallint, tinyint, date type of Cassandra