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

Internal error when using "Explain" button

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.0.1
    • query_tools, UI
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      The same query using `EXPLAIN`:

       

       

      The full `EXPLAIN` output:

      [
        {
          "plan": {
            "#operator": "Sequence",
            "~children": [
              {
                "#operator": "IndexScan3",
                "bucket": "devportal-api",
                "covers": [
                  "cover ((`tmp`.`youtubeId`))",
                  "cover ((meta(`tmp`).`id`))"
                ],
                "index": "tmp_youtubeId",
                "index_id": "6c222a4b9bea1d",
                "index_projection": {
                  "entry_keys": [
                    0
                  ]
                },
                "keyspace": "tmp",
                "namespace": "default",
                "scope": "_default",
                "spans": [
                  {
                    "range": [
                      {
                        "inclusion": 0,
                        "low": "null"
                      }
                    ]
                  }
                ],
                "using": "gsi"
              },
              {
                "#operator": "Parallel",
                "~child": {
                  "#operator": "Sequence",
                  "~children": [
                    {
                      "#operator": "Filter",
                      "condition": "(cover ((`tmp`.`youtubeId`)) in (select (`video`.`youtubeId`) from `default`:`devportal-api`.`_default`.`video`))"
                    },
                    {
                      "#operator": "InitialGroup",
                      "aggregates": [
                        "count(*)"
                      ],
                      "group_keys": []
                    }
                  ]
                }
              },
              {
                "#operator": "IntermediateGroup",
                "aggregates": [
                  "count(*)"
                ],
                "group_keys": []
              },
              {
                "#operator": "FinalGroup",
                "aggregates": [
                  "count(*)"
                ],
                "group_keys": []
              },
              {
                "#operator": "Parallel",
                "~child": {
                  "#operator": "Sequence",
                  "~children": [
                    {
                      "#operator": "InitialProject",
                      "result_terms": [
                        {
                          "expr": "count(*)"
                        }
                      ]
                    }
                  ]
                }
              }
            ]
          },
          "text": "select count(*) from tmp where youtubeId IN (select video.youtubeId from video)"
        }
      ] 

       

      Attachments

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

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            dmitrii.chechetkin Dmitrii Chechetkin
            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