-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix user keyword test in vtexplain test
Signed-off-by: Harshit Gangal <[email protected]>
- Loading branch information
1 parent
c23bf6a
commit cf9a8b6
Showing
10 changed files
with
121 additions
and
121 deletions.
There are no files selected for viewing
40 changes: 20 additions & 20 deletions
40
go/vt/vtexplain/testdata/multi-output/comments-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
---------------------------------------------------------------------- | ||
SELECT * from user | ||
|
||
1 ks_sharded/-40: select * from user limit 10001 | ||
1 ks_sharded/40-80: select * from user limit 10001 | ||
1 ks_sharded/80-c0: select * from user limit 10001 | ||
1 ks_sharded/c0-: select * from user limit 10001 | ||
1 ks_sharded/-40: select * from `user` limit 10001 | ||
1 ks_sharded/40-80: select * from `user` limit 10001 | ||
1 ks_sharded/80-c0: select * from `user` limit 10001 | ||
1 ks_sharded/c0-: select * from `user` limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
select /* ; */ 1 from user | ||
|
||
1 ks_sharded/-40: select /* ; */ 1 from user limit 10001 | ||
1 ks_sharded/40-80: select /* ; */ 1 from user limit 10001 | ||
1 ks_sharded/80-c0: select /* ; */ 1 from user limit 10001 | ||
1 ks_sharded/c0-: select /* ; */ 1 from user limit 10001 | ||
1 ks_sharded/-40: select /* ; */ 1 from `user` limit 10001 | ||
1 ks_sharded/40-80: select /* ; */ 1 from `user` limit 10001 | ||
1 ks_sharded/80-c0: select /* ; */ 1 from `user` limit 10001 | ||
1 ks_sharded/c0-: select /* ; */ 1 from `user` limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
select 1 from user where x=';' | ||
|
||
1 ks_sharded/-40: select 1 from user where x = ';' limit 10001 | ||
1 ks_sharded/40-80: select 1 from user where x = ';' limit 10001 | ||
1 ks_sharded/80-c0: select 1 from user where x = ';' limit 10001 | ||
1 ks_sharded/c0-: select 1 from user where x = ';' limit 10001 | ||
1 ks_sharded/-40: select 1 from `user` where x = ';' limit 10001 | ||
1 ks_sharded/40-80: select 1 from `user` where x = ';' limit 10001 | ||
1 ks_sharded/80-c0: select 1 from `user` where x = ';' limit 10001 | ||
1 ks_sharded/c0-: select 1 from `user` where x = ';' limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
select 1 from user where x='/* hello */' | ||
|
||
1 ks_sharded/-40: select 1 from user where x = '/* hello */' limit 10001 | ||
1 ks_sharded/40-80: select 1 from user where x = '/* hello */' limit 10001 | ||
1 ks_sharded/80-c0: select 1 from user where x = '/* hello */' limit 10001 | ||
1 ks_sharded/c0-: select 1 from user where x = '/* hello */' limit 10001 | ||
1 ks_sharded/-40: select 1 from `user` where x = '/* hello */' limit 10001 | ||
1 ks_sharded/40-80: select 1 from `user` where x = '/* hello */' limit 10001 | ||
1 ks_sharded/80-c0: select 1 from `user` where x = '/* hello */' limit 10001 | ||
1 ks_sharded/c0-: select 1 from `user` where x = '/* hello */' limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
select 1 from user where x='/* ; */' | ||
|
||
1 ks_sharded/-40: select 1 from user where x = '/* ; */' limit 10001 | ||
1 ks_sharded/40-80: select 1 from user where x = '/* ; */' limit 10001 | ||
1 ks_sharded/80-c0: select 1 from user where x = '/* ; */' limit 10001 | ||
1 ks_sharded/c0-: select 1 from user where x = '/* ; */' limit 10001 | ||
1 ks_sharded/-40: select 1 from `user` where x = '/* ; */' limit 10001 | ||
1 ks_sharded/40-80: select 1 from `user` where x = '/* ; */' limit 10001 | ||
1 ks_sharded/80-c0: select 1 from `user` where x = '/* ; */' limit 10001 | ||
1 ks_sharded/c0-: select 1 from `user` where x = '/* ; */' limit 10001 | ||
|
||
---------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
---------------------------------------------------------------------- | ||
select * from user where email='[email protected]' | ||
|
||
1 ks_sharded/-40: select * from user where email = '[email protected]' limit 10001 | ||
1 ks_sharded/40-80: select * from user where email = '[email protected]' limit 10001 | ||
1 ks_sharded/80-c0: select * from user where email = '[email protected]' limit 10001 | ||
1 ks_sharded/c0-: select * from user where email = '[email protected]' limit 10001 | ||
1 ks_sharded/-40: select * from `user` where email = '[email protected]' limit 10001 | ||
1 ks_sharded/40-80: select * from `user` where email = '[email protected]' limit 10001 | ||
1 ks_sharded/80-c0: select * from `user` where email = '[email protected]' limit 10001 | ||
1 ks_sharded/c0-: select * from `user` where email = '[email protected]' limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
select * from user where id in (1,2,3,4,5,6,7,8) | ||
|
||
1 ks_sharded/-40: select * from user where id in (1, 2) limit 10001 | ||
1 ks_sharded/40-80: select * from user where id in (3, 5) limit 10001 | ||
1 ks_sharded/c0-: select * from user where id in (4, 6, 7, 8) limit 10001 | ||
1 ks_sharded/-40: select * from `user` where id in (1, 2) limit 10001 | ||
1 ks_sharded/40-80: select * from `user` where id in (3, 5) limit 10001 | ||
1 ks_sharded/c0-: select * from `user` where id in (4, 6, 7, 8) limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
insert into user (id, name) values (2, 'bob') | ||
|
||
1 ks_sharded/c0-: begin | ||
1 ks_sharded/c0-: insert into name_user_map(`name`, user_id) values ('bob', 2) | ||
2 ks_sharded/-40: begin | ||
2 ks_sharded/-40: insert into user(id, `name`) values (2, 'bob') | ||
2 ks_sharded/-40: insert into `user`(id, `name`) values (2, 'bob') | ||
3 ks_sharded/c0-: commit | ||
4 ks_sharded/-40: commit | ||
|
||
|
18 changes: 9 additions & 9 deletions
18
go/vt/vtexplain/testdata/multi-output/select-sharded-8-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
---------------------------------------------------------------------- | ||
select * from user | ||
|
||
1 ks_sharded/-20: select * from user limit 10001 | ||
1 ks_sharded/20-40: select * from user limit 10001 | ||
1 ks_sharded/40-60: select * from user limit 10001 | ||
1 ks_sharded/60-80: select * from user limit 10001 | ||
1 ks_sharded/80-a0: select * from user limit 10001 | ||
1 ks_sharded/a0-c0: select * from user limit 10001 | ||
1 ks_sharded/c0-e0: select * from user limit 10001 | ||
1 ks_sharded/e0-: select * from user limit 10001 | ||
1 ks_sharded/-20: select * from `user` limit 10001 | ||
1 ks_sharded/20-40: select * from `user` limit 10001 | ||
1 ks_sharded/40-60: select * from `user` limit 10001 | ||
1 ks_sharded/60-80: select * from `user` limit 10001 | ||
1 ks_sharded/80-a0: select * from `user` limit 10001 | ||
1 ks_sharded/a0-c0: select * from `user` limit 10001 | ||
1 ks_sharded/c0-e0: select * from `user` limit 10001 | ||
1 ks_sharded/e0-: select * from `user` limit 10001 | ||
|
||
---------------------------------------------------------------------- | ||
select * from user where id in (1, 2) | ||
|
||
1 ks_sharded/-20: select * from user where id in (1, 2) limit 10001 | ||
1 ks_sharded/-20: select * from `user` where id in (1, 2) limit 10001 | ||
|
||
---------------------------------------------------------------------- |
Oops, something went wrong.