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

Server does not require hint() for min()/max() when IDHACK is used

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query 2019-07-29

      In SERVER-39567 we changed min()/max() to require a hint(), but kay.kim discovered that this is not enforced when IDHACK is used.

      I don't think there's an incorrect results bug here (similar to the linked ticket) but this is undesirable.

      Repro:

      db.c.find({_id: 5}).max({_id: 1}).explain()
      

            Assignee:
            misha.ivkov@mongodb.com Mikhail Ivkov (Inactive)
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: