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

Error 4321 generated when OR clause has a ($parameter is null) arm

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • query
    • 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

          For Gerrit Dashboard: MB-51561
          # Subject Branch Project Status CR V

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              marco.greco Marco Greco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty