Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25394

Cannot index Decimal inside a subdoc

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.11
    • Affects Version/s: 3.3.8
    • Component/s: Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • Hide
      db.user.ensureIndex({
          num: 1,
          x: 1
      });
      db.user.insert({
          x: [{a: NumberDecimal(Infinity)}]
      });
      
      Show
      db.user.ensureIndex({ num: 1, x: 1 }); db.user.insert({ x: [{a: NumberDecimal(Infinity)}] });
    • 0

      bsonTypeToGenericKeyStringType is missing a case for NumberDecimal.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: