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

Multi-level Unnest Predicate is not sargable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.5.0
    • 5.5.0
    • query
    • None
    • Untriaged
    • Yes

    Description

      filter condition is depends on multiple unnests

      CREATE INDEX ix22 ON default( (ALL ARRAY (ALL ARRAY [op.name,op.val,x] FOR op IN x END) FOR x IN a1 END ));
       
      EXPLAIN SELECT [op.name,op.val,x]
      FROM default AS d UNNEST d.a1 AS x
      UNNEST x AS op
      WHERE [op.name,op.val,x] = ["type2", "bla","xxx"] ;
      
      

      Above query is not using the index mentioned above.

      Attachments

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

        Activity

          People

            arunkumar Arunkumar Senthilnathan (Inactive)
            Sitaram.Vemulapalli Sitaram Vemulapalli
            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