Skip to content

Commit

Permalink
revert onecase.json
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Jun 19, 2024
1 parent 35353c5 commit 121d127
Showing 1 changed file with 4 additions and 64 deletions.
68 changes: 4 additions & 64 deletions go/vt/vtgate/planbuilder/testdata/onecase.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,9 @@
[
{
"comment": "Add your test case here for debugging and run go test -run=One.",
"query": "select Count(*) from user join user_extra where user.intcol + user_extra.incol < 5 limit 5",
"v3-plan": "table user not found",
"gen4-plan": {
"QueryType": "SELECT",
"Original": "select Count(*) from user join user_extra where user.intcol + user_extra.incol < 5 limit 5",
"Instructions": {
"OperatorType": "Limit",
"Count": "5",
"Inputs": [
{
"OperatorType": "Aggregate",
"Variant": "Scalar",
"Aggregates": "sum_count_star(0) AS Count(*)",
"Inputs": [
{
"OperatorType": "Projection",
"Expressions": [
"count(*) * count(*) as Count(*)"
],
"Inputs": [
{
"OperatorType": "Join",
"Variant": "Join",
"JoinColumnIndexes": "L:0,R:0",
"JoinVars": {
"user_intcol": 1
},
"TableName": "`user`_user_extra",
"Inputs": [
{
"OperatorType": "Route",
"Variant": "Scatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"FieldQuery": "select `user`.intcol, Count(*) from `user` where 1 != 1 group by `user`.intcol",
"Query": "select `user`.intcol, Count(*) from `user` group by `user`.intcol",
"Table": "`user`"
},
{
"OperatorType": "Route",
"Variant": "Scatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"FieldQuery": "select 1, Count(*) from user_extra where 1 != 1 group by .0",
"Query": "select 1, Count(*) from user_extra where :user_intcol + user_extra.incol < 5 group by .0",
"Table": "user_extra"
}
]
}
]
}
]
}
]
},
"TablesUsed": [
"user.user",
"user.user_extra"
]
"query": "",
"plan": {

}
}
]
]

0 comments on commit 121d127

Please sign in to comment.