Skip to content

Commit e001cd0

Browse files
authored
fix test cases
1 parent 378d6a9 commit e001cd0

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
@@ -937,7 +937,6 @@
937937
"comment": "Comments with subquery",
938938
"query": "select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)",
939939
"plan": {
940-
"Type": "Scatter",
941940
"QueryType": "SELECT",
942941
"Original": "select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)",
943942
"Instructions": {
@@ -948,7 +947,8 @@
948947
"Sharded": true
949948
},
950949
"FieldQuery": "select `user`.col from `user` where 1 != 1",
951-
"Query": "select /* comment */ `user`.col from `user` where id in (select id from `user` where id > 1 and id < 10)"
950+
"Query": "select /* comment */ `user`.col from `user` where id in (select id from `user` where id > 1 and id < 10)",
951+
"Table": "`user`"
952952
},
953953
"TablesUsed": [
954954
"user.user"
@@ -959,7 +959,6 @@
959959
"comment": "Comments with subquery not merged into a single route",
960960
"query": "select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)",
961961
"plan": {
962-
"Type": "Complex",
963962
"QueryType": "SELECT",
964963
"Original": "select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)",
965964
"Instructions": {
@@ -979,7 +978,8 @@
979978
"Sharded": true
980979
},
981980
"FieldQuery": "select id from `user` where 1 != 1",
982-
"Query": "select /* comment */ id from `user` where id > 1 and id < 10"
981+
"Query": "select /* comment */ id from `user` where id > 1 and id < 10",
982+
"Table": "`user`"
983983
},
984984
{
985985
"InputName": "Outer",
@@ -990,7 +990,8 @@
990990
"Sharded": true
991991
},
992992
"FieldQuery": "select `user`.col from `user` where 1 != 1",
993-
"Query": "select /* comment */ `user`.col from `user` where :__sq_has_values and foo in ::__sq1"
993+
"Query": "select /* comment */ `user`.col from `user` where :__sq_has_values and foo in ::__sq1",
994+
"Table": "`user`"
994995
}
995996
]
996997
},

0 commit comments

Comments
 (0)