Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4341

export to Java doesn't like $size expression inside other expressions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 1.21.2
    • Export to Language
    • None

    Description

      When I have a valid pipeline with $size expression that works fine, it can export to Java but not if "Use Builders" is checked then it only works if $size is top level expression. Multiple attempts to export with builders other places where numbers would work give different errors:

      Using inside $slice or $range - "$size cannot be top-level"

      Using in $toString - "Cannot read property 'push' of undefined"

      Attachments

        Activity

          People

            Unassigned Unassigned
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: