rankFusion does not reject timeseries collection when run in subpipelines

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The query below should fail with the error that timeseries collections are not allowed with rankFusion, but it fails with a different error message. There is no validation specifically for rankFusion and timeseries in subpipelines, we just happen to fail somewhere during execution.

      coll.runCommand("aggregate", {pipeline: [ {$limit: 1}, {$lookup: {from: timeseriesCollName, pipeline: rankFusionPipeline, as: "out"}}, {$unwind: "$out"}, {$replaceRoot: {newRoot: "$out"}} ], cursor: {}});

      This error is happening because the validation to restrict rankFusion running on timeseries collections only exists in run_aggregate and cluster_aggregate. Subpipelines are not made nor executed using these commands if the subpipeline can be executed on the local node. 

            Assignee:
            Unassigned
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: