Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-694

java.time.LocalTime incorrectly mapped with cassandra time datatype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2 GA (Moore)
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu Linux 18.04, openjdk-11-jdk amd64, spring-boot 2.2.0.RELEASE, cqlsh 5.0.1, Cassandra 3.11.4, CQL spec 3.4.4, Native protocol v4

      Description

      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'.

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            hurelhuyag Hurelhuyag
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 21 weeks, 2 days ago