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

[CX] Query w/ Composite array index fails to compile with CBO

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown
    • Analytics CBO Sprint 16

    Description

      If you run ANALYZE DATASET on the datasets in the test-suite array-index/composite-index-queries, the 9th query in the suite:

      FROM      Dataset2 D2,
                Dataset1 D1
      WHERE     D1.field1 /* +indexnl */ = TO_BIGINT(D2.field1) AND
                ( SOME D1I IN D1.items
                  SATISFIES D1I.field2 /* +indexnl */ = TO_BIGINT(D2.field2) AND
                            D1I.field3 /* +indexnl */ = TO_BIGINT(D2.field3) ) AND
                D1.field4 /* +indexnl */ = TO_BIGINT(D2.field4)
      SELECT    D2.field1, D2.field2, D2.field3, D2.field4
      ORDER BY  D2.field1, D2.field2, D2.field3, D2.field4;

      Will fail to compile with the following message:

      ASX1079: Compilation error: Could not infer type for variable '$$85'. 

      Attachments

        Issue Links

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

          Activity

            People

              murali.krishna Murali Krishna
              ian.maxon Ian Maxon
              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