[COMPASS-3605] Valid $lookup rejected Created: 29/Apr/19  Updated: 29/Oct/23  Resolved: 10/Jul/19

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Lucas Hrabovsky (Inactive) Assignee: Irina Shestak (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Iteration Giraffe, Iteration Hedgehog

 Description   

The first stage in this example is incorrectly rejected:

{
  from: "air_airlines",
  let: { maybe_name: "$airlines" },
  pipeline: [
    {
      $match: {
        $expr: {
          $gt: [
            {
              $size: {
                $setIntersection: [
                  "$$maybe_name",
                  ["$name", "$alias", "$iata", "$icao"]
                ]
              }
            },
            0
          ]
        }
      }
    },
    {
      $project: {
        _id: 0,
        name_is: "$name",
        ref_name: {
          $arrayElemAt: [
            {
              $filter: {
                input: "$$maybe_name",
                cond: {
                  $in: ["$$this", ["$name", "$alias", "$iata", "$icao"]]
                }
              }
            },
            0
          ]
        }
      }
    }
  ],
  as: "found"
}
 



 Comments   
Comment by Githook User [ 19/Aug/19 ]

Author:

{'username': 'lrlna', 'email': 'lrlna@users.noreply.github.com', 'name': 'Irina Shestak'}

Message: COMPASS-3605: allow query_expressions to have agg_arrays (#1755)
Branch: update-compass-cru
https://github.com/10gen/compass/commit/afeb5280f9cc5d077dcfc2fd81c4ff3a19a241de

Comment by Githook User [ 13/Aug/19 ]

Author:

{'name': 'Irina Shestak', 'email': 'lrlna@users.noreply.github.com', 'username': 'lrlna'}

Message: COMPASS-3605: allow query_expressions to have agg_arrays (#1755)
Branch: master
https://github.com/10gen/compass/commit/afeb5280f9cc5d077dcfc2fd81c4ff3a19a241de

Comment by Githook User [ 13/Aug/19 ]

Author:

{'name': 'lrlna', 'username': 'lrlna', 'email': 'shestak.irina@gmail.com'}

Message: COMPASS-3605: allow query_expressions to have agg_arrays
Branch: update-compass-aggregations
https://github.com/10gen/compass/commit/67dc328e82b7c612feff33e96b8f242869da7351

Generated at Wed Feb 07 22:33:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.