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

Schema Analyzer tab crashes on a certain query

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 1.26.1
    • Schema
    • None
    • 2

    Description

      Problem Statement/Rationale

      Seems like certain data types crash the schema analyzer tab

      Steps to Reproduce

      • Open sample_geospatial.shipwrecks collection in Compass
      • Go to the "Schema" tab
      • Change query to {depth: {$type: 'number'}} and press Analyze

      Expected Results

      You see analyze results in the UI

      Actual Results

      Tab goes blank and there are errors in the console

      Additional Notes

      Stack trace from packaged application:

      TypeError: Expected a function
          at it (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309)
          at pt (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309)
          at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309
          at m (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309)
          at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309
          at t.exports (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309)
          at t.exports (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:309)
          at SVGRectElement.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/@mongodb-js/compass-schema/lib/index.js:325)
          at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/d3/d3.js:962
          at d3_selection_each (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/d3/d3.js:968)
      

      Seems to happen with a Double type for some reason

      Attachments

        Activity

          People

            Unassigned Unassigned
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: