The containers once the query has changed (PLAN §11.29): steps follow the flow.

  1. A step the query no longer has leaves its container: a new step of the same id must not take its place.
  2. Each step placed, added or moved, leaves the container it was in, and joins the one that holds both the step feeding its first input and the step it feeds: one added after a container's last step stays out.
  3. A container split by the change, e.g. by removing a Join in it, keeps its largest block, the one with the first step by id when two are as large; one left with no step goes.

The containers as they were when nothing changes.

  • Parameters

    • containers: undefined | readonly StepContainer[]
    • query: Query
    • placed: readonly string[] = []

    Returns undefined | readonly StepContainer[]