Unsafe downcast in DocumentSourceGroupBase::distributedPlanLogicWithoutContext()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2026-05-11, QE 2026-05-25, QE 2026-06-08
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There are two unsafe downcasts from DocumentSource to DocumentSourceGroup: here and here. In both cases, the object can actually have type DocumentSourceStreamingGroup, which leads to undefined behavior. We should instead be downcasting to DocumentSourceGroupBase, which is a parent to both DocumentSourceGroup and DocumentSourceStreamingGroup.

            Assignee:
            Justin Seyster
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: