Introduce a new jstest suite for testing the dependency graph

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This could probably be split into two or three tickets once we start implementing this (one for implementing the document source, one for implementing the rewrite, one for adding the suite).

      From the design:

      We will introduce a new passthrough DocumentSource that holds a set of FieldPaths and asserts for every input document that none of the FieldPaths contain arrays. Additionally, we will introduce a new test-only rewrite (gated via a query knob) that inserts said DocumentSource before every stage. The rewrite will construct the set of field paths by looking at all fields referenced by the stage and adding them to the set if the graph reports canPathBeArray(stage, path) == false.

            Assignee:
            Matt Olma
            Reporter:
            Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: