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

XMLWordPrintableJSON

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

      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
            Reporter:
            David Percy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: