diff --git a/go/vt/vtgate/planbuilder/testdata/onecase.json b/go/vt/vtgate/planbuilder/testdata/onecase.json index da1f6fbf0a6..da7543f706a 100644 --- a/go/vt/vtgate/planbuilder/testdata/onecase.json +++ b/go/vt/vtgate/planbuilder/testdata/onecase.json @@ -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": { + } } -] +] \ No newline at end of file