Skip to content

Commit

Permalink
PR: Shrink the tests furthur as we only care about the pattern showing
Browse files Browse the repository at this point in the history
typeIndexJoin with or without parallelNode.
  • Loading branch information
shahzadlone committed Sep 14, 2023
1 parent dfc2d24 commit cb1e44f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 252 deletions.
81 changes: 0 additions & 81 deletions tests/integration/explain/default/with_average_join_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,87 +387,6 @@ func TestDefaultExplainRequestOneToManyWithAverageAndChildNeNilFilterSharesJoinF
},
},
},

ExpectedFullGraph: []dataMap{
{
"explain": dataMap{
"selectTopNode": dataMap{
"averageNode": dataMap{
"countNode": dataMap{
"sources": []dataMap{
{
"filter": dataMap{
"rating": dataMap{
"_ne": nil,
},
},
"fieldName": "books",
},
},
"sumNode": dataMap{
"sources": []dataMap{
{
"filter": dataMap{
"rating": dataMap{
"_ne": nil,
},
},
"fieldName": "books",
"childFieldName": "rating",
},
},
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"typeIndexJoin": dataMap{
"joinType": "typeJoinMany",
"rootName": "author",
"root": dataMap{
"scanNode": dataMap{
"filter": nil,
"collectionID": "3",
"collectionName": "Author",
"spans": []dataMap{
{
"start": "/3",
"end": "/4",
},
},
},
},
"subTypeName": "books",
"subType": dataMap{
"selectTopNode": dataMap{
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"scanNode": dataMap{
"filter": dataMap{
"rating": dataMap{
"_ne": nil,
},
},
"collectionID": "2",
"collectionName": "Book",
"spans": []dataMap{
{
"start": "/2",
"end": "/3",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
Expand Down
171 changes: 0 additions & 171 deletions tests/integration/explain/default/with_count_join_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,72 +296,6 @@ func TestDefaultExplainRequestOneToManyWithCountWithFilterAndChildFilterSharesJo
},
},
},

ExpectedFullGraph: []dataMap{
{
"explain": dataMap{
"selectTopNode": dataMap{
"countNode": dataMap{
"sources": []dataMap{
{
"filter": dataMap{
"rating": dataMap{
"_ne": nil,
},
},
"fieldName": "books",
},
},
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"typeIndexJoin": dataMap{
"joinType": "typeJoinMany",
"rootName": "author",
"root": dataMap{
"scanNode": dataMap{
"filter": nil,
"collectionID": "3",
"collectionName": "Author",
"spans": []dataMap{
{
"start": "/3",
"end": "/4",
},
},
},
},
"subTypeName": "books",
"subType": dataMap{
"selectTopNode": dataMap{
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"scanNode": dataMap{
"filter": dataMap{
"rating": dataMap{
"_ne": nil,
},
},
"collectionID": "2",
"collectionName": "Book",
"spans": []dataMap{
{
"start": "/2",
"end": "/3",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
Expand Down Expand Up @@ -411,111 +345,6 @@ func TestDefaultExplainRequestOneToManyWithCountAndChildFilterDoesNotShareJoinFi
},
},
},

ExpectedFullGraph: []dataMap{
{
"explain": dataMap{
"selectTopNode": dataMap{
"countNode": dataMap{
"sources": []dataMap{
{
"fieldName": "books",
"filter": nil,
},
},
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"parallelNode": []dataMap{
{
"typeIndexJoin": dataMap{
"joinType": "typeJoinMany",
"rootName": "author",
"root": dataMap{
"scanNode": dataMap{
"collectionID": "3",
"collectionName": "Author",
"filter": nil,
"spans": []dataMap{
{
"start": "/3",
"end": "/4",
},
},
},
},
"subTypeName": "books",
"subType": dataMap{
"selectTopNode": dataMap{
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"scanNode": dataMap{
"collectionID": "2",
"collectionName": "Book",
"filter": dataMap{
"rating": dataMap{
"_ne": nil,
},
},
"spans": []dataMap{
{
"start": "/2",
"end": "/3",
},
},
},
},
},
},
},
},
{
"typeIndexJoin": dataMap{
"joinType": "typeJoinMany",
"rootName": "author",
"root": dataMap{
"scanNode": dataMap{
"collectionID": "3",
"collectionName": "Author",
"filter": nil,
"spans": []dataMap{
{
"start": "/3",
"end": "/4",
},
},
},
},
"subTypeName": "books",
"subType": dataMap{
"selectTopNode": dataMap{
"selectNode": dataMap{
"_keys": nil,
"filter": nil,
"scanNode": dataMap{
"collectionID": "2",
"collectionName": "Book",
"filter": nil,
"spans": []dataMap{
{
"start": "/2",
"end": "/3",
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
}
Expand Down

0 comments on commit cb1e44f

Please sign in to comment.