oceanbase / miniob

MiniOB is a compact database that assists developers in understanding the fundamental workings of a database.
https://oceanbase.github.io/miniob/
Mulan Permissive Software License, Version 2
2.82k stars 1k forks source link

miniob-test2 #12

Closed hnwyllmm closed 2 years ago

hnwyllmm commented 2 years ago

大家找一块自己的地方,在一个comment里面,可以重复提交测试,每次comment变更,都可以检测到。 在一个时间段内,一个团队的任务提交,只会有一个任务执行。 使用方法:

# 执行测试
test <your-github-name> [case1] [case2] ...

# 查看失败原因
view <your-github-name> <case1> [case2] ...

FAQ:

hnwyllmm commented 2 years ago

CNLHC: unknown error. maybe compile failed

hnwyllmm commented 2 years ago

xuhaoran1: score:10, passed: basic, commit id=03aa15ca07a5f03c43d1527e10323c86bdcbe7e6, date=2021-11-17 17:15:10

BanBuDu0 commented 2 years ago

BanBuDu0: score:190, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,multi-index,text,order-by,group-by, commit id=ed7e6849e4f6a51f1325c9e0236924f352799198, date=2021-11-16 15:10:53

cnissnzg commented 2 years ago

cnissnzg: score:110, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,null,unique,order-by, commit id=c4450c873ef6ac988981353f7bc0ce4996ca9e5d, date=2021-11-16 22:14:36

ligen131 commented 2 years ago

view ligen131 aggregation-func

cnissnzg commented 2 years ago

cnissnzg: score:110, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,null,unique,order-by, commit id=1c106ebd4902d4d483b3bb08bbf95ab056c64ea8, date=2021-11-17 19:22:29

SmileEndymion commented 2 years ago

CRRRRR2016: score:120, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,unique,order-by, commit id=bfd777fb9079cf04ff348a8840560ae3921d6ca8, date=2021-11-17 20:16:42

ligen131 commented 2 years ago

ligen131: score:180, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,multi-index,text,order-by,group-by, commit id=2fda7a1995e2888bac29ba7ef6c2fea8f83f47b7, date=2021-11-17 19:40:11

rehoboan commented 2 years ago

rehoboan: all cases failed., commit id=c93656e14408546908855f9e736bef055547589e, date=2021-11-17 19:42:41

litterrookie commented 2 years ago

litterrookie: score:40, passed: basic,update,select-meta,drop-table, commit id=27bb7a2b11e1dfe3d50b430734d5ae738309529f, date=2021-11-17 17:17:03

cnissnzg commented 2 years ago

test cnissnzg

rehoboan commented 2 years ago

rehoboan: all cases failed., commit id=c2a1e55f07806c4a4ceb310f9390a84273992a05, date=2021-11-17 19:52:31

adlternative commented 2 years ago

test Super-long

cnissnzg commented 2 years ago

cnissnzg: score:110, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,null,unique,order-by, commit id=9e00dd6094308b245e9fbf58731a85285168efda, date=2021-11-17 19:49:38

xuhaoran1 commented 2 years ago

xuhaoran1: score:10, passed: basic, commit id=03aa15ca07a5f03c43d1527e10323c86bdcbe7e6, date=2021-11-17 17:15:10

FLAYhhh commented 2 years ago

FLAYhhh: all cases failed., commit id=3d00d121697abfe475e3e8643b2720e00b20be14, date=2021-11-17 20:07:56

xuhaoran1 commented 2 years ago

xuhaoran1:

select-meta: result file difference(`-` is yours and `+` is base)
 1. SELECT FROM A NON-EXISTENT TABLE
 SELECT * FROM NO_TABLE;
-NO DATA
+FAILURE
FLAYhhh commented 2 years ago

FLAYhhh: score:50, passed: update,select-meta,select-tables,aggregation-func,drop-table,insert,unique,text,order-by, commit id=3d00d121697abfe475e3e8643b2720e00b20be14, date=2021-11-17 20:07:56

adlternative commented 2 years ago

Super-long: unknown error. maybe compile failed

JacksonWang6 commented 2 years ago

WangAShao: score:240, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,simple-sub-query,multi-index,text,expression,complex-sub-query,order-by,group-by, commit id=e25c8f4c24c10c487271f4f7b295803db74aa31c, date=2021-11-17 20:30:02

adlternative commented 2 years ago

Super-long: unknown error. maybe compile failed

FLAYhhh commented 2 years ago

view FLAYhhh basic

FLAYhhh commented 2 years ago

FLAYhhh:

date: result file difference(`-` is yours and `+` is base)
 2. COMPARE DATE DATA
 SELECT * FROM DATE_TABLE WHERE U_DATE>'2020-1-20';
+1 | 2020-01-21
+2 | 2020-10-21
+9 | 2038-01-19
 ID | U_DATE
 SELECT * FROM DATE_TABLE WHERE U_DATE<'2019-12-31';
+5 | 2019-12-21
+6 | 2016-02-29
+7 | 1970-01-01
+8 | 2000-01-01
 ID | U_DATE
 SELECT * FROM DATE_TABLE WHERE U_DATE='2020-1-1';
+3 | 2020-01-01
+4 | 2020-01-01
 ID | U_DATE
adlternative commented 2 years ago

Super-long: score:10, passed: basic, commit id=e6a37dad37d5c0f137a07e70b1a5ae6cae93d8b4, date=2021-11-17 20:05:34

adlternative commented 2 years ago

view Super-long join-tables

xin258 commented 2 years ago

946776018xx5288: unknown error. maybe compile failed

xin258 commented 2 years ago

946776018xx5288: score:140, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,unique,order-by,group-by, commit id=41c855652b14bc7bde1d064ff3812eb4edb6848b, date=2021-11-17 20:50:43

ligen131 commented 2 years ago

test ligen131

cnissnzg commented 2 years ago

cnissnzg: score:130, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,null,unique,multi-index,order-by, commit id=3c984dfc5abb9e39e8a9a2f3488db57e1df4bca3, date=2021-11-17 20:51:02

SincereXIA commented 2 years ago

fkuner: score:20, passed: text, commit id=8ce3dc295c01f5bb36e1f33c1c61e86725a48416, date=2021-11-17 19:59:22

zjx1230 commented 2 years ago

zjx1230: score:170, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,text,order-by,group-by, commit id=cd0f6e325c80e5c84b99dfe8fb65363322f5f53d, date=2021-11-17 20:45:55

FLAYhhh commented 2 years ago

view FLAYhhh null

zhufeizhu commented 2 years ago

Galaxy0106: score:60, passed: basic,date,update,select-meta,select-tables,drop-table,insert,join-tables,null,unique,multi-index,expression,order-by,group-by, commit id=51763055b66c0f91cbb1195e9f1812b0b92f8c72, date=2021-11-17 20:57:15

SincereXIA commented 2 years ago

fkuner: score:170, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,simple-sub-query,text,group-by, commit id=8ce3dc295c01f5bb36e1f33c1c61e86725a48416, date=2021-11-17 19:59:22

SincereXIA commented 2 years ago

view fkuner expression

zjx1230 commented 2 years ago

zjx1230: score:190, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,multi-index,text,order-by,group-by, commit id=72b0f00c5b2fd8ef2a2dd6c4190a129f3044283e, date=2021-11-17 21:45:30

SincereXIA commented 2 years ago

fkuner:

order-by: result file difference(`-` is yours and `+` is base)
 SELECT * FROM T_ORDER_BY ORDER BY ID DESC, SCORE ASC, NAME DESC;
 ID | SCORE | NAME
 4 | 3 | C
 3 | 1 | A
-3 | 2 | C
 3 | 2 | F
+3 | 2 | C
 3 | 3 | D
 3 | 4 | C
 1 | 2 | B
zhufeizhu commented 2 years ago

Galaxy0106:

aggregation-func: result file difference(`-` is yours and `+` is base)
 SELECT AVG(PRICE) FROM AGGREGATION_FUNC;
 AVG(PRICE)
-22
+22.5
FLAYhhh commented 2 years ago

FLAYhhh: score:50, passed: update,select-meta,select-tables,aggregation-func,drop-table,insert,unique,text,order-by, commit id=9a84c4a4a4908b50f50d987661eef6cdf7f074ab, date=2021-11-17 21:04:48

yqekzb123 commented 2 years ago

RUC-Seed-No-59: all cases failed., commit id=68b485a89ab59b41526c92ef3d5d312ce6359fdb, date=2021-11-17 21:05:49

SincereXIA commented 2 years ago

fkuner:

expression: result file difference(`-` is yours and `+` is base)
 1. SELECT
 SELECT * FROM EXP_TABLE WHERE 1 = 5/4;
+ID | COL1 | COL2 | COL3 | COL4
+select * from exp_table where col1-2 > 0;
+3 | 3 | 4 | 5 | 4
+ID | COL1 | COL2 | COL3 | COL4
+select * from exp_table where 2+col2 < 1;
+2 | 2 | -2 | 5.5 | 1
+ID | COL1 | COL2 | COL3 | COL4
+select * from exp_table where col1*col2 < 0;
+2 | 2 | -2 | 5.5 | 1
+ID | COL1 | COL2 | COL3 | COL4
FLAYhhh commented 2 years ago

FLAYhhh:

null: result file difference(`-` is yours and `+` is base)
 SELECT * FROM NULL_TABLE WHERE 'A' IS NULL;
+ID | NUM | PRICE | BIRTHDAY
+SELECT * FROM null_table where 'a' is not null;
 1 | 18 | 10 | 2020-01-01
 2 | NULL | 20 | 2010-01-11
 3 | 12 | 30 | NULL
 4 | 15 | 30 | 2021-01-31
 ID | NUM | PRICE | BIRTHDAY
-SELECT * FROM NULL_TABLE WHERE 'A' IS NOT NULL;
-ID | NUM | PRICE | BIRTHDAY
 SELECT * FROM NULL_TABLE WHERE NULL='A';
 ID | NUM | PRICE | BIRTHDAY
 SELECT * FROM NULL_TABLE WHERE 'A'=NULL;
 ID | NUM | PRICE | BIRTHDAY
 SELECT * FROM NULL_TABLE WHERE 'A'<>NULL;
 ID | NUM | PRICE | BIRTHDAY
 SELECT * FROM NULL_TABLE WHERE 'A'>NULL;
 ID | NUM | PRICE | BIRTHDAY
 SELECT * FROM NULL_TABLE WHERE 'A'<NULL;
 ID | NUM | PRICE | BIRTHDAY
zhufeizhu commented 2 years ago

test Galaxy0106 aggregation-func

FLAYhhh commented 2 years ago

FLAYhhh:

date: result file difference(`-` is yours and `+` is base)
 2. COMPARE DATE DATA
 SELECT * FROM DATE_TABLE WHERE U_DATE>'2020-1-20';
+1 | 2020-01-21
+2 | 2020-10-21
+9 | 2038-01-19
 ID | U_DATE
 SELECT * FROM DATE_TABLE WHERE U_DATE<'2019-12-31';
+5 | 2019-12-21
+6 | 2016-02-29
+7 | 1970-01-01
+8 | 2000-01-01
 ID | U_DATE
 SELECT * FROM DATE_TABLE WHERE U_DATE='2020-1-1';
+3 | 2020-01-01
+4 | 2020-01-01
 ID | U_DATE
FLAYhhh commented 2 years ago

FLAYhhh:

group-by: result file difference(`-` is yours and `+` is base)
 4. WITH WHERE CONDITION
 SELECT ID, AVG(SCORE) FROM T_GROUP_BY WHERE ID>2 GROUP BY ID;
+3 | 2.4
+4 | 3
+ID | AVG(SCORE)
BrianYi commented 2 years ago

wangqiim: score:200, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,simple-sub-query,multi-index,text,order-by,group-by, commit id=49b826fb67579779069f36ce7fc071708184c085, date=2021-11-17 20:10:22

xuhaoran1 commented 2 years ago

xuhaoran1: score:20, passed: basic,select-meta, commit id=fb921dafa18626feaeced44953835581adf27118, date=2021-11-17 20:52:25

ligen131 commented 2 years ago

ligen131: score:190, passed: basic,date,update,select-meta,select-tables,aggregation-func,drop-table,insert,join-tables,null,unique,multi-index,text,order-by,group-by, commit id=9c35f77d49a52d9b58326b565f53340ed3a10632, date=2021-11-17 21:17:39

LJYer commented 2 years ago

RUC-Seed-No-59: all cases failed., commit id=149b9633e17a42580969c6a9a9da61900319fd40, date=2021-11-17 21:34:40

LJYer commented 2 years ago

RUC-Seed-No-59:

select-tables: result file difference(`-` is yours and `+` is base)
 INITIALIZATION
 CREATE TABLE SELECT_TABLES_1(ID INT, AGE INT, U_NAME CHAR);
-FAILURE
+SUCCESS
 CREATE TABLE SELECT_TABLES_2(ID INT, AGE INT, U_NAME CHAR);
-FAILURE
+SUCCESS
 CREATE TABLE SELECT_TABLES_3(ID INT, RES INT, U_NAME CHAR);
-FAILURE
+SUCCESS
 CREATE TABLE SELECT_TABLES_4(ID INT, AGE INT, U_NAME CHAR);
-FAILURE
+SUCCESS
 CREATE TABLE SELECT_TABLES_5(ID INT, RES INT, U_NAME CHAR);
-FAILURE
+SUCCESS