Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4476

DateTimeUtils.timeStringToUnixDate may produce wrong time

    XMLWordPrintableJSON

Details

    Description

      The query SELECT CAST("00:00" as TIME) returns 00:00:01 in Calcite.
      The problem is located in the DateTimeUtils.timeStringToUnixDate method that mistakenly assigns 1 to seconds and minutes in some cases.

      PR: https://github.com/apache/calcite-avatica/pull/134

      Attachments

        Issue Links

          Activity

            People

              vozerov Vladimir Ozerov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m