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 937
937
"comment" : " Comments with subquery" ,
938
938
"query" : " select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)" ,
939
939
"plan" : {
940
- "Type" : " Scatter" ,
941
940
"QueryType" : " SELECT" ,
942
941
"Original" : " select /* comment */ user.col from user where id IN (select id from user where id > 1 and id < 10)" ,
943
942
"Instructions" : {
948
947
"Sharded" : true
949
948
},
950
949
"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`"
952
952
},
953
953
"TablesUsed" : [
954
954
" user.user"
959
959
"comment" : " Comments with subquery not merged into a single route" ,
960
960
"query" : " select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)" ,
961
961
"plan" : {
962
- "Type" : " Complex" ,
963
962
"QueryType" : " SELECT" ,
964
963
"Original" : " select /* comment */ user.col from user where foo IN (select id from user where id > 1 and id < 10)" ,
965
964
"Instructions" : {
979
978
"Sharded" : true
980
979
},
981
980
"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`"
983
983
},
984
984
{
985
985
"InputName" : " Outer" ,
990
990
"Sharded" : true
991
991
},
992
992
"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`"
994
995
}
995
996
]
996
997
},
You can’t perform that action at this time.
0 commit comments