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

Parsing "undefined" field name breaks Export Pipeline to Language feature

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

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Steps to Reproduce

      Add a $search stage in your aggregation, with code similar to this

      {
        index: 'mflix-movies-fts', 
        text: {
          query: 'henry', 
          path: 'cast', 
          score: {
            'function': {
              gauss: {
                path: {
                  value: 'rating', 
                  undefined: 50,
                },
                origin: 95,
                scale: 5,
                offset: 5,
                decay: 0.5
              }
            }
          }
        }
      }

       

      Expected Results

      User can export to language

      Actual Results

      An error message appears

      no viable alternative at input '[{$search: {\n index: 'mflix-movies-fts',\n text: {\n query: 'henry',\n path: 'cast',\n score: {\n 'function': {\n gauss: {\n path: {\n value: 'rating',\n undefined'

      Additional Notes

      Tried with quotes like 'undefined' of "undefined" with same result

            Assignee:
            Unassigned Unassigned
            Reporter:
            leonardo.rossi@mongodb.com Leonardo Rossi (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: