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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.21.2
    • Component/s: Export to Language
    • Labels:
      None

      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"

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

              Created:
              Updated: