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 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" : {
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"
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" : {
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" ,
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 },
You can’t perform that action at this time.
0 commit comments