Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-59897

DATE_TRUNC_STR does not returned up to milliseconds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.0
    • 7.6.0
    • query
    • None
    • 7.6.0-1485
    • Untriaged
    • 0
    • Yes

    Description

      Seen in our regression, the date_trunc_str function returns date parts up to seconds but fails for milliseconds

      For example:

      cbq> SELECT DATE_TRUNC_STR('2016-05-18T03:59:59.123Z', 'millisecond');
      {
          "requestID": "c02cd6af-dc87-4d3b-b8f5-29b4517e959e",
          "signature": {
              "$1": "string"
          },
          "results": [
          {
              "$1": "2016-05-18T03:59:59Z"
          }
          ], 

      should expect 2016-05-18T03:59:59.123Z

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              pierre.regazzoni Pierre Regazzoni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty