Replace boost::dynamic_pointer_cast<exec::agg::Stage> in DocumentSourceQuerySettings

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2025-07-07
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      DocumentSourceQuerySettings still uses boost::dynamic_pointer_cast<exec::agg::Stage>. This cast might start to fail when we split the relevant stages into QO and QE classes.

      Since DocumentSourceQuerySettings  is creating a QO stage from scratch, the most fitting way would be to use the existing exec::agg::buildStage() function to construct the QE counterpart instead of trying to cast.

      In addition, we need to clarify with QuerySettings team why the stage is created dynamically, and not during query optimization.

              Assignee:
              Jan Steemann
              Reporter:
              Romans Kasperovics
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: