-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add e2e test to verify straight join changes
Signed-off-by: Manan Gupta <[email protected]>
- Loading branch information
1 parent
fca5ba9
commit dbb73a8
Showing
2 changed files
with
87 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,60 @@ | ||
[ | ||
{ | ||
"comment": "Add your test case here for debugging and run go test -run=One.", | ||
"query": "", | ||
"plan": { | ||
|
||
} | ||
} | ||
] | ||
{ | ||
"OperatorType": "Join", | ||
"Variant": "Join", | ||
"JoinColumnIndexes": "R:0,R:1,L:0", | ||
"JoinVars": { | ||
"t1_id1": 1 | ||
}, | ||
"TableName": "t1_tbl", | ||
"Inputs": [ | ||
{ | ||
"OperatorType": "Route", | ||
"Variant": "Scatter", | ||
"Keyspace": { | ||
"Name": "ks_misc", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select t1.id2, t1.id1 from t1 where 1 != 1", | ||
"Query": "select t1.id2, t1.id1 from t1", | ||
"Table": "t1" | ||
}, | ||
{ | ||
"OperatorType": "VindexLookup", | ||
"Variant": "EqualUnique", | ||
"Keyspace": { | ||
"Name": "ks_misc", | ||
"Sharded": true | ||
}, | ||
"Values": [ | ||
":t1_id1" | ||
], | ||
"Vindex": "unq_vdx", | ||
"Inputs": [ | ||
{ | ||
"OperatorType": "Route", | ||
"Variant": "IN", | ||
"Keyspace": { | ||
"Name": "ks_misc", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select unq_col, keyspace_id from unq_idx where 1 != 1", | ||
"Query": "select unq_col, keyspace_id from unq_idx where unq_col in ::__vals", | ||
"Table": "unq_idx", | ||
"Values": [ | ||
"::unq_col" | ||
], | ||
"Vindex": "hash" | ||
}, | ||
{ | ||
"OperatorType": "Route", | ||
"Variant": "ByDestination", | ||
"Keyspace": { | ||
"Name": "ks_misc", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select tbl.unq_col, tbl.nonunq_col from tbl where 1 != 1", | ||
"Query": "select tbl.unq_col, tbl.nonunq_col from tbl where tbl.unq_col = :t1_id1", | ||
"Table": "tbl" | ||
} | ||
] | ||
} |