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

Set taggedMatchExpressionHash in QueryPlanner::planFromCache

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2025-02-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-97662 added taggedMatchExpressionHash to QuerySolution and sets it in most places, but it is not being set in QueryPlanner::planFromCache. This ticket is to set the member correctly in QueryPlanner::planFromCache and write a test for it.

      A test for this might look like:

      • Cache a plan with a match expression.
      • Retrieve the plan.
      • Check that the retrieved query solution's hash matches the hash in the plan itself.

            Assignee:
            william.qian@mongodb.com William Qian
            Reporter:
            william.qian@mongodb.com William Qian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None