summaryrefslogtreecommitdiff
path: root/src/mongo/db/test_output
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2023-01-11 14:59:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-11 16:00:53 +0000
commit7e7f7732145fd87888291661dcb40464fecf29eb (patch)
tree3ea0f187661aa3bae8cb65a5a12431e2fb67ae3d /src/mongo/db/test_output
parent9bd31b4fb9586a9a3493fa7332be64e84d360dd1 (diff)
downloadmongo-7e7f7732145fd87888291661dcb40464fecf29eb.tar.gz
SERVER-72312 Add lowering unittest for NestedLoopJoinNode
Diffstat (limited to 'src/mongo/db/test_output')
-rw-r--r--src/mongo/db/test_output/exec/sbe/a_b_t_plan_generation/lower_nested_loop_join_node.txt79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/mongo/db/test_output/exec/sbe/a_b_t_plan_generation/lower_nested_loop_join_node.txt b/src/mongo/db/test_output/exec/sbe/a_b_t_plan_generation/lower_nested_loop_join_node.txt
new file mode 100644
index 00000000000..29764e12e1c
--- /dev/null
+++ b/src/mongo/db/test_output/exec/sbe/a_b_t_plan_generation/lower_nested_loop_join_node.txt
@@ -0,0 +1,79 @@
+# Golden test output of ABTPlanGeneration/LowerNestedLoopJoinNode
+
+==== VARIATION: Nested loop join with equality predicate (Inner join) ====
+-- INPUT:
+NestedLoopJoin [joinType: Inner, {proj0}]
+| | BinaryOp [FillEmpty]
+| | | Const [false]
+| | BinaryOp [Eq]
+| | | Variable [proj1]
+| | Variable [proj0]
+| Evaluation []
+| | BindBlock:
+| | [proj1]
+| | FunctionCall [getField]
+| | | Const ["id"]
+| | Variable [scan1]
+| PhysicalScan [{'<root>': scan1}, otherColl]
+| BindBlock:
+| [scan1]
+| Source []
+Evaluation []
+| BindBlock:
+| [proj0]
+| FunctionCall [getField]
+| | Const ["city"]
+| Variable [scan0]
+PhysicalScan [{'<root>': scan0}, collName]
+ BindBlock:
+ [scan0]
+ Source []
+
+-- OUTPUT:
+[4] nlj inner [] [s2] {((s2 == s4) ?: false)}
+ left
+ [1] project [s2 = getField(s1, "city")]
+ [0] scan s1 none none none none none [] @"<collUUID>" true false
+ right
+ [3] project [s4 = getField(s3, "id")]
+ [2] scan s3 none none none none none [] @"<collUUID>" true false
+
+
+==== VARIATION: Nested loop join with equality predicate (Left join) ====
+-- INPUT:
+NestedLoopJoin [joinType: Left, {proj0}]
+| | BinaryOp [FillEmpty]
+| | | Const [false]
+| | BinaryOp [Eq]
+| | | Variable [proj1]
+| | Variable [proj0]
+| Evaluation []
+| | BindBlock:
+| | [proj1]
+| | FunctionCall [getField]
+| | | Const ["id"]
+| | Variable [scan1]
+| PhysicalScan [{'<root>': scan1}, otherColl]
+| BindBlock:
+| [scan1]
+| Source []
+Evaluation []
+| BindBlock:
+| [proj0]
+| FunctionCall [getField]
+| | Const ["city"]
+| Variable [scan0]
+PhysicalScan [{'<root>': scan0}, collName]
+ BindBlock:
+ [scan0]
+ Source []
+
+-- OUTPUT:
+[4] nlj left [] [s2] {((s2 == s4) ?: false)}
+ left
+ [1] project [s2 = getField(s1, "city")]
+ [0] scan s1 none none none none none [] @"<collUUID>" true false
+ right
+ [3] project [s4 = getField(s3, "id")]
+ [2] scan s3 none none none none none [] @"<collUUID>" true false
+