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

[BP to 7.0.4] - Error 4321 generated when OR clause has a ($parameter is null) arm

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      select * from `travel-sample` where (type=$type or $type is null)
      

      yields

      [
        {
          "code": 4321,
          "msg": "Plan error: buildOrScanNoPushdown: missing OR subterm",
          "query": "select * from `travel-sample` where (type=$type or $type is null)"
        }
      ]
      

      $type doesn't even have to be set

      Attachments

        Issue Links

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

          Activity

            People

              ajay.bhullar Ajay Bhullar
              bingjie.miao Bingjie Miao
              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