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

Value() function in expression package may give wrong results if expression underneath changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 5.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      ExpressionBase has value member.
      First time expr.Value() called this member is filled
      If we replace expression under neath and called again it gives from previous value.

      Repro:
      CREATE INDEX ix1 ON default(c1);
       explain select c1 from default where c1 = null;
      NULL and MISSING can't be compared like above so it generates empty span which is right
       
      curl -v http://Administrator:password@localhost:8093/query/service -H "Content-Type: application/json" -d '{"statement":"EXPLAIN select c1 from default where c1 = $name","$name":null}'
       
      Above curl generates different spans. 
      
      

      Attachments

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

        Activity

          People

            ajay.bhullar Ajay Bhullar
            Sitaram.Vemulapalli Sitaram Vemulapalli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty