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

race condition in letting clause

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.5.0
    • 6.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      run this query 10 times: 

      select a, b, c from default group by a, b, c letting a=1,b=a+1,c=b+1 order by a, b, c

      Sometimes it returns:
      [

      { "a": 1,"b": 2,"c": 3 }

      ]

      And sometimes it returns:
      [

      { "code": 4210, "msg": "Expression must be a group key or aggregate: (`b` + 1)", "query_from_user": "select a, b, c from default group by a, b, c letting a=1,b=a+1,c=b+1 order by a, b, c" }

      ]

      Attachments

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

        Activity

          People

            korrigan.clark Korrigan Clark (Inactive)
            korrigan.clark Korrigan Clark (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty