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

[CX] correlated aggregation columns

    XMLWordPrintable

Details

    • Untriaged
    • Unknown
    • CX Sprint 113

    Description

      Query:

      from emp as e 
      group by dept group as g
      let highest_salary = max(e.salary),
                best_paid = (from g
                                      where g.e.salary = highest_salary
                                      select g.e.name
                                     )
      select dept, highest_salary, best_paid;
      

      Exception:

      "msg": "Variable $$26 could not be found in any input schema.",
      

      Attachments

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

        Activity

          People

            dmitry.lychagin Dmitry Lychagin (Inactive)
            yingyi Yingyi Bu (Inactive)
            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