Skip to content

Commit 4a81a09

Browse files
committed
fix test cases
1 parent c4a06ff commit 4a81a09

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

go/vt/vtgate/planbuilder/testdata/select_cases.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@
989989
"comment": "Comments with subquery",
990990
"query": "select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)",
991991
"plan": {
992-
"Type": "Scatter",
993992
"QueryType": "SELECT",
994993
"Original": "select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)",
995994
"Instructions": {
@@ -1000,7 +999,8 @@
1000999
"Sharded": true
10011000
},
10021001
"FieldQuery": "select `user`.col from `user` where 1 != 1",
1003-
"Query": "select /* comment */ `user`.col from `user` where id in (select id from `user` where id > 1 and id < 10)"
1002+
"Query": "select /* comment */ `user`.col from `user` where id in (select id from `user` where id > 1 and id < 10)",
1003+
"Table": "`user`"
10041004
},
10051005
"TablesUsed": [
10061006
"user.user"
@@ -1012,7 +1012,6 @@
10121012
"comment": "Comments with subquery not merged into a single route",
10131013
"query": "select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)",
10141014
"plan": {
1015-
"Type": "Complex",
10161015
"QueryType": "SELECT",
10171016
"Original": "select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)",
10181017
"Instructions": {
@@ -1032,7 +1031,8 @@
10321031
"Sharded": true
10331032
},
10341033
"FieldQuery": "select id from `user` where 1 != 1",
1035-
"Query": "select /* comment */ id from `user` where id > 1 and id < 10"
1034+
"Query": "select /* comment */ id from `user` where id > 1 and id < 10",
1035+
"Table": "`user`"
10361036
},
10371037
{
10381038
"InputName": "Outer",
@@ -1043,7 +1043,8 @@
10431043
"Sharded": true
10441044
},
10451045
"FieldQuery": "select `user`.col from `user` where 1 != 1",
1046-
"Query": "select /* comment */ `user`.col from `user` where :__sq_has_values and foo in ::__sq1"
1046+
"Query": "select /* comment */ `user`.col from `user` where :__sq_has_values and foo in ::__sq1",
1047+
"Table": "`user`"
10471048
}
10481049
]
10491050
},

0 commit comments

Comments
 (0)