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

[CQF] Fall back to classic if any index has non-simple collation

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-08-08, QO 2022-08-22, QO 2022-09-05

      If any index has a non-simple collation, we should fall back to classic, the same way we do for other unsupported index types (partial, sparse, hashed, etc).

      Currently we check if the query request has a collation: https://github.com/10gen/mongo/blob/268a45d9962d25a7b9b5b6d995983b575451b31c/src/mongo/db/commands/cqf/cqf_command_utils.cpp#L598

      But we don't check for a collation defined on the indexes: https://github.com/10gen/mongo/blob/268a45d9962d25a7b9b5b6d995983b575451b31c/src/mongo/db/commands/cqf/cqf_command_utils.cpp#L611-L614

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: