Skip to content
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

java.time.LocalTime incorrectly mapped with cassandra time datatype [DATACASS-694] #864

spring-projects-issues opened this issue Oct 24, 2019 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Oct 24, 2019

Hurelhuyag opened DATACASS-694 and commented

I created entity with LocalTime property. When I save my entity with value something like '16:37:08.696' it saves like this '00:00:00.059828696'. And If I retrieve this value it in java side everything fine. Only cqlsh shows completelly different value.

Expected result:

If I store this value LocalDate.parse("10:15:30"), cqlsh should show like this '10:15:30.000000000'

Affects: 2.2 GA (Moore)

Referenced from: pull request #166

Backported to: 2.2.1 (Moore SR1), 2.1.12 (Lovelace SR12)

Copy link

@spring-projects-issues spring-projects-issues commented Oct 24, 2019

Hurelhuyag commented

It seems like cassandra using nanoseconds instead of milliseconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants