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

Schema Analyzer tab crashes on a certain query

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.26.1
    • Component/s: Schema
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Not Needed

      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

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

              Created:
              Updated:
              Resolved: