Skip to content

Commit

Permalink
fix: test and result
Browse files Browse the repository at this point in the history
  • Loading branch information
FAndromedA committed Jan 3, 2025
1 parent b58e68f commit d4ba952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/case/result/primary-join-tables.result
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ JOIN_TABLE_1.ID | JOIN_TABLE_1.NAME | JOIN_TABLE_2.ID | JOIN_TABLE_2.NUM
Select join_table_1.name from join_table_1 inner join join_table_2 on join_table_1.id=join_table_2.id;
A
B
JOIN_TABLE_1.NAME
NAME
Select join_table_2.num from join_table_1 inner join join_table_2 on join_table_1.id=join_table_2.id;
15
2
JOIN_TABLE_2.NUM
NUM
Select * from join_table_1 inner join join_table_2 on join_table_1.id=join_table_2.id inner join join_table_3 on join_table_1.id=join_table_3.id;
1 | A | 1 | 2 | 1 | 120
JOIN_TABLE_1.ID | JOIN_TABLE_1.NAME | JOIN_TABLE_2.ID | JOIN_TABLE_2.NUM | JOIN_TABLE_3.ID | JOIN_TABLE_3.NUM2
Expand Down
8 changes: 4 additions & 4 deletions test/case/test/primary-null.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- echo initialization
CREATE TABLE null_table(id int not null, num int null, price float not null, birthday date null);
CREATE TABLE null_table2(id int not null, num int null, price float not null, birthday date null);
CREATE TABLE null_table(id int, num int nullable, price float not null, birthday date nullable);
CREATE TABLE null_table2(id int, num int nullable, price float not null, birthday date nullable);
CREATE INDEX index_num on null_table(num);

-- echo 1. insert
Expand Down Expand Up @@ -74,10 +74,10 @@ SELECT count(birthday) FROM null_table;
SELECT avg(num) FROM null_table;

-- echo 6. aggregation with null columns
CREATE TABLE null_table3(id int not null, num int null);
CREATE TABLE null_table3(id int, num int nullable);
INSERT INTO null_table3 VALUES (1, null);
INSERT INTO null_table3 VALUES (2, null);
SELECT count(num) FROM null_table3;
SELECT min(num) FROM null_table3;
SELECT max(num) FROM null_table3;
SELECT avg(num) FROM null_table3;
SELECT avg(num) FROM null_table3;

0 comments on commit d4ba952

Please sign in to comment.