Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3519

LINQ3: Add factory method AstExpression.Multiply to support $multiply flattening

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.0
    • None
    • LINQ3
    • None

    Description

      Use:

      AstExpression.Multiply(args...) 

      instead of:

      new AstNaryExpression(AstNaryOperator.Multiply, args...) 

      to support $multiply flattening.

      Note that this requires changing $multiplyl from a binary operator to an nary operator.

      I don't think constant folding is needed here but it can always be added later if we end up needing it after all.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: