File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
go/vt/vtgate/planbuilder/testdata Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 880
880
"comment" : " Comments with subquery" ,
881
881
"query" : " select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)" ,
882
882
"plan" : {
883
- "Type" : " Scatter" ,
884
883
"QueryType" : " SELECT" ,
885
884
"Original" : " select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)" ,
886
885
"Instructions" : {
891
890
"Sharded" : true
892
891
},
893
892
"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`"
895
895
},
896
896
"TablesUsed" : [
897
897
" user.user"
902
902
"comment" : " Comments with subquery not merged into a single route" ,
903
903
"query" : " select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)" ,
904
904
"plan" : {
905
- "Type" : " Complex" ,
906
905
"QueryType" : " SELECT" ,
907
906
"Original" : " select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)" ,
908
907
"Instructions" : {
922
921
"Sharded" : true
923
922
},
924
923
"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`"
926
926
},
927
927
{
928
928
"InputName" : " Outer" ,
933
933
"Sharded" : true
934
934
},
935
935
"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`"
937
938
}
938
939
]
939
940
},
You can’t perform that action at this time.
0 commit comments