Skip to content

Commit

Permalink
small tweaks to test and workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Aug 5, 2024
1 parent 15e4011 commit c045042
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 26 deletions.
1 change: 0 additions & 1 deletion .github/workflows/vitess_tester_vtgate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
- 'go/**/*.go'
- 'go/vt/sidecardb/**/*.sql'
- 'go/test/endtoend/vtgate/vitess_tester/**'
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
- 'test.go'
- 'Makefile'
- 'build.env'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,39 @@
use customer;
create table if not exists customer(
customer_id bigint not null,
email varbinary(128),
primary key(customer_id)
) ENGINE=InnoDB;
insert into customer.customer(customer_id, email) values(1, '[[email protected]](mailto:[email protected])');
insert into customer.customer(customer_id, email) values(2, '[[email protected]](mailto:[email protected])');
insert into customer.customer(customer_id, email) values(3, '[[email protected]](mailto:[email protected])');
insert into customer.customer(customer_id, email) values(4, '[[email protected]](mailto:[email protected])');
insert into customer.customer(customer_id, email) values(5, '[[email protected]](mailto:[email protected])');
create table if not exists customer
(
customer_id bigint not null,
email varbinary(128),
primary key (customer_id)
) ENGINE = InnoDB;

insert into customer.customer(customer_id, email)
values (1, '[[email protected]](mailto:[email protected])'),
(2, '[[email protected]](mailto:[email protected])'),
(3, '[[email protected]](mailto:[email protected])'),
(4, '[[email protected]](mailto:[email protected])'),
(5, '[[email protected]](mailto:[email protected])');
use corder;
create table if not exists corder(
order_id bigint not null,
customer_id bigint,
sku varbinary(128),
price bigint,
primary key(order_id)
) ENGINE=InnoDB;
insert into corder.corder(order_id, customer_id, sku, price) values(1, 1, 'SKU-1001', 100);
insert into corder.corder(order_id, customer_id, sku, price) values(2, 2, 'SKU-1002', 30);
insert into corder.corder(order_id, customer_id, sku, price) values(3, 3, 'SKU-1002', 30);
insert into corder.corder(order_id, customer_id, sku, price) values(4, 4, 'SKU-1002', 30);
insert into corder.corder(order_id, customer_id, sku, price) values(5, 5, 'SKU-1002', 30);
create table if not exists corder
(
order_id bigint not null,
customer_id bigint,
sku varbinary(128),
price bigint,
primary key (order_id)
) ENGINE = InnoDB;
insert into corder.corder(order_id, customer_id, sku, price)
values (1, 1, 'SKU-1001', 100),
(2, 2, 'SKU-1002', 30),
(3, 3, 'SKU-1002', 30),
(4, 4, 'SKU-1002', 30),
(5, 5, 'SKU-1002', 30);

select co.order_id, co.customer_id, co.price from corder.corder co left join customer.customer cu on co.customer_id=cu.customer_id where cu.customer_id=1;
select co.order_id, co.customer_id, co.price
from corder.corder co
left join customer.customer cu on co.customer_id = cu.customer_id
where cu.customer_id = 1;

# This query was accidentally disallowed by https://github.com/vitessio/vitess/pull/16520
select 1 from customer.customer where id in (select customer_id from corder.corder where price > 50);
select 1
from customer.customer
where customer_id in (select customer_id from corder.corder where price > 50);
1 change: 0 additions & 1 deletion test/templates/cluster_vitess_tester.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
- 'go/**/*.go'
- 'go/vt/sidecardb/**/*.sql'
- 'go/test/endtoend/vtgate/vitess_tester/**'
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
- 'test.go'
- 'Makefile'
- 'build.env'
Expand Down

0 comments on commit c045042

Please sign in to comment.