Skip to content

Commit cb5a0a0

Browse files
committed
fix new tests
Signed-off-by: Mohamed Hamza <[email protected]>
1 parent 0a327cb commit cb5a0a0

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
@@ -880,7 +880,6 @@
880880
"comment": "Comments with subquery",
881881
"query": "select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)",
882882
"plan": {
883-
"Type": "Scatter",
884883
"QueryType": "SELECT",
885884
"Original": "select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)",
886885
"Instructions": {
@@ -891,7 +890,8 @@
891890
"Sharded": true
892891
},
893892
"FieldQuery": "select `user`.col from `user` where 1 != 1",
894-
"Query": "select /* comment */ `user`.col from `user` where id in (select id from `user` where id > 1 and id < 10)"
893+
"Query": "select /* comment */ `user`.col from `user` where id in (select id from `user` where id > 1 and id < 10)",
894+
"Table": "`user`"
895895
},
896896
"TablesUsed": [
897897
"user.user"
@@ -902,7 +902,6 @@
902902
"comment": "Comments with subquery not merged into a single route",
903903
"query": "select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)",
904904
"plan": {
905-
"Type": "Complex",
906905
"QueryType": "SELECT",
907906
"Original": "select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)",
908907
"Instructions": {
@@ -922,7 +921,8 @@
922921
"Sharded": true
923922
},
924923
"FieldQuery": "select id from `user` where 1 != 1",
925-
"Query": "select /* comment */ id from `user` where id > 1 and id < 10"
924+
"Query": "select /* comment */ id from `user` where id > 1 and id < 10",
925+
"Table": "`user`"
926926
},
927927
{
928928
"InputName": "Outer",
@@ -933,7 +933,8 @@
933933
"Sharded": true
934934
},
935935
"FieldQuery": "select `user`.col from `user` where 1 != 1",
936-
"Query": "select /* comment */ `user`.col from `user` where :__sq_has_values and foo in ::__sq1"
936+
"Query": "select /* comment */ `user`.col from `user` where :__sq_has_values and foo in ::__sq1",
937+
"Table": "`user`"
937938
}
938939
]
939940
},

0 commit comments

Comments
 (0)