Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27269

In sharded cluster, can't read from view whose pipeline has $collStats and is a view on another view

    • Query
    • ALL
    • v3.4
    • Query 2016-12-12

      In a sharded configuration, users cannot query a view if its backing namespace is also a view and its pipeline contains $collStats. More concretely,

      db.createView("firstView", "somethingElse", []);
      db.createView("collStatsView", "firstView", [ { $collStats: {} } ]);
      

      All queries against collStatsView incorrectly fail with "command not supported on view".

      This bug does not affect views that don't have $collStats in their pipelines. It also does not affect views whose pipelines contain $collStats but have a collection as their backing namespace.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: