Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions test/distributed/cases/dml/delete/delete.result
Original file line number Diff line number Diff line change
Expand Up @@ -254,29 +254,23 @@ insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
[unknown result because it is related to issue#9447]
begin;
[unknown result because it is related to issue#9447]
insert into t select * from t;
[unknown result because it is related to issue#9447]
delete from t where a = 1;
[unknown result because it is related to issue#9447]
select count(*) from t;
[unknown result because it is related to issue#9447]
➤ count(*)[-5,64,0] 𝄀
8387584
rollback;
[unknown result because it is related to issue#9447]
begin;
[unknown result because it is related to issue#9447]
insert into t select * from t;
[unknown result because it is related to issue#9447]
delete from t where a = 1;
[unknown result because it is related to issue#9447]
select count(*) from t;
[unknown result because it is related to issue#9447]
➤ count(*)[-5,64,0] 𝄀
8387584
commit;
[unknown result because it is related to issue#9447]
select count(*) from t;
[unknown result because it is related to issue#9447]
➤ count(*)[-5,64,0] 𝄀
8387584
drop table if exists temp;
drop table if exists t;
create table temp(a int);
Expand Down
2 changes: 0 additions & 2 deletions test/distributed/cases/dml/delete/delete.test
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ insert into t select * from t;
insert into t select * from t;
insert into t select * from t;

-- @bvt:issue#9447
insert into t select * from t;
begin;
insert into t select * from t;
Expand All @@ -198,7 +197,6 @@ delete from t where a = 1;
select count(*) from t;
commit;
select count(*) from t;
-- @bvt:issue

# test cn block delete for single table, multi CN
drop table if exists temp;
Expand Down
2 changes: 1 addition & 1 deletion test/distributed/cases/dml/show/show.test
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ create database test01;
use test01;
show columns from test02.t1;
create database if not exists db11111111111;
-- @bvt:issue#10164
-- @bvt:issue#23677
show table status from db11111111111;
-- @bvt:issue
drop database db11111111111;
Expand Down
10 changes: 5 additions & 5 deletions test/distributed/cases/dtype/uuid.result
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
create table t1(a int, b uuid);
desc t1;
Field Type Null Key Default Extra Comment
a INT(32) YES null
b UUID(0) YES null
a INT(32) YES null
b UUID(0) YES null
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (\n `a` int DEFAULT NULL,\n `b` uuid DEFAULT NULL\n)
Expand All @@ -15,7 +15,7 @@ d date
) COMMENT='test uuid parimary key';
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (\n`a` UUID NOT NULL,\n`b` INT DEFAULT NULL,\n`c` VARCHAR(20) DEFAULT NULL,\n`d` DATE DEFAULT NULL,\nPRIMARY KEY (`a`)\n) COMMENT='test uuid parimary key'
t2 CREATE TABLE `t2` (\n `a` uuid NOT NULL,\n `b` int DEFAULT NULL,\n `c` varchar(20) DEFAULT NULL,\n `d` date DEFAULT NULL,\n PRIMARY KEY (`a`)\n) COMMENT='test uuid parimary key'
INSERT INTO t2 VALUES ("6d1b1f73-2dbf-11ed-940f-000c29847904",12,'SMITH','1980-12-17');
INSERT INTO t2 VALUES ("ad9f809f-2dbd-11ed-940f-000c29847904",34,'ALLEN','1981-02-20');
INSERT INTO t2 VALUES ("1b50c137-2dba-11ed-940f-000c29847904",15,'WARD','1981-02-22');
Expand All @@ -37,9 +37,9 @@ a b c d
ad9f809f-2dbd-11ed-940f-000c29847904 34 ALLEN 1981-02-20
select * from t2 where a <= '6d1b1f732dbf11ed940f000c29847904';
a b c d
6d1b1f73-2dbf-11ed-940f-000c29847904 12 SMITH 1980-12-17
1b50c137-2dba-11ed-940f-000c29847904 15 WARD 1981-02-22
149e3f0f-2de4-11ed-940f-000c29847904 27 JONES 1981-04-02
1b50c137-2dba-11ed-940f-000c29847904 15 WARD 1981-02-22
6d1b1f73-2dbf-11ed-940f-000c29847904 12 SMITH 1980-12-17
select * from t2 where a < '6d1b1f732dbf11ed940f000c29847904';
a b c d
1b50c137-2dba-11ed-940f-000c29847904 15 WARD 1981-02-22
Expand Down
3 changes: 1 addition & 2 deletions test/distributed/cases/dtype/uuid.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ desc t1;
show create table t1;
drop table t1;
-- test uuid type as primary key
-- @bvt:issue#10703
create table t2(
a uuid primary key,
b int,
Expand All @@ -25,7 +24,7 @@ select * from t2 where a <= '6d1b1f732dbf11ed940f000c29847904';
select * from t2 where a < '6d1b1f732dbf11ed940f000c29847904';
select * from t2 order by a;
drop table t2;
-- @bvt:issue

-- uuid type in DQL
create table t3(a int, b uuid);
insert into t3 values(10, "f6355110-2d0c-11ed-940f-000c29847904");
Expand Down
126 changes: 63 additions & 63 deletions test/distributed/cases/function/func_math.result
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ insert into t1 values(2,2,1.0213,1.001);
insert into t1 values(3,null,null,null);
insert into t1 values(4,0,0,0);
select sinh(d),sinh(fl)from t1;
sinh(d) sinh(fl)
1.1752 1.3379574503777456E53
3.6269 1.2083
null null
0.0 0.0
sinh(d)[8,54,0] ¦ sinh(fl)[8,54,0] 𝄀
1.1752011936438014 ¦ 1.3379574503777456E53 𝄀
3.626860407847019 ¦ 1.2083378295843907 𝄀
null ¦ null 𝄀
0.0 ¦ 0.0
select atan(d),atan(fl)from t1;
atan(d) atan(fl)
0.7853981633974483 1.5626678322541754
1.1071487177940906 0.7959355256441749
null null
0.0 0.0
atan(d)[8,54,0] ¦ atan(fl)[8,54,0] 𝄀
0.7853981633974483 ¦ 1.5626678322541752 𝄀
1.1071487177940904 ¦ 0.7959355256441749 𝄀
null ¦ null 𝄀
0.0 ¦ 0.0
select acos(d),acos(fl)from t1;
invalid argument acos, bad value 2
select cot(d),cot(fl) from t1;
invalid argument cot, bad value 0
select cot(d),cot(fl) from t1 where d <> 0;
cot(d) cot(fl)
0.6420926159343306 1.8340266997618755
-0.4576575543602858 0.6124124816462909
cot(d)[8,54,0] ¦ cot(fl)[8,54,0] 𝄀
0.6420926159343306 ¦ 1.8340266997618755 𝄀
-0.4576575543602858 ¦ 0.6124124816462909
select tan(d),tan(fl) from t1;
tan(d) tan(fl)
1.557407724654902 0.5452483326059671
-2.185039863261519 1.632886379637126
null null
0.0 0.0
tan(d)[8,54,0] ¦ tan(fl)[8,54,0] 𝄀
1.557407724654902 ¦ 0.5452483326059671 𝄀
-2.185039863261519 ¦ 1.632886379637126 𝄀
null ¦ null 𝄀
0.0 ¦ 0.0
select sin(d),sin(fl) from t1;
sin(d) sin(fl)
0.8414709848078965 -0.47871259002208294
0.9092974268256817 0.8527876556479776
null null
0.0 0.0
sin(d)[8,54,0] ¦ sin(fl)[8,54,0] 𝄀
0.8414709848078965 ¦ -0.47871259002208294 𝄀
0.9092974268256816 ¦ 0.8527876556479776 𝄀
null ¦ null 𝄀
0.0 ¦ 0.0
drop table if exists abs;
create table abs(id int,d int,dl double,fl float,de decimal);
insert into abs values(1,-10,-10,-10.0321,-10.312);
Expand All @@ -45,55 +45,55 @@ insert into abs values(4,-31232,-9223372036854775808,-1312.0321,-973.3072);
insert into abs values(1,-6,-432432.43,-8756.4321,-356.421);
insert into abs values(1,null,null,null,null);
select abs(d),abs(dl),abs(fl) from abs;
abs(d) abs(dl) abs(fl)
10 10.0 10.032099723815918
2 2.0 2.032099962234497
10 1.8446744073709552E19 10.032099723815918
31232 9.223372036854776E18 1312.0321044921875
6 432432.43 8756.431640625
null null null
abs(d)[-5,64,0] ¦ abs(dl)[8,54,0] ¦ abs(fl)[8,54,0] 𝄀
10 ¦ 10.0 ¦ 10.032099723815918 𝄀
2 ¦ 2.0 ¦ 2.032099962234497 𝄀
10 ¦ 1.8446744073709552E19 ¦ 10.032099723815918 𝄀
31232 ¦ 9.223372036854776E18 ¦ 1312.0321044921875 𝄀
6 ¦ 432432.43 ¦ 8756.431640625 𝄀
null ¦ null ¦ null
select abs(d)-2 from t1;
abs(d)-2
-1
0
null
abs(d) - 2[-5,64,0] 𝄀
-1 𝄀
0 𝄀
null 𝄀
-2
select abs(d)*2 from t1;
abs(d)*2
2
4
null
abs(d) * 2[-5,64,0] 𝄀
2 𝄀
4 𝄀
null 𝄀
0
select abs(tan(d))*2 from t1;
abs(tan(d))*2
3.114815449309804
4.370079726523038
null
abs(tan(d)) * 2[8,54,0] 𝄀
3.114815449309804 𝄀
4.370079726523038 𝄀
null 𝄀
0.0
drop table if exists ceil;
create table ceil(id int,d int,dl double,fl float,de decimal);
create table ceil(id int primary key,d int,dl double,fl float,de decimal);
insert into ceil values(1,5,5,-5.5,-5.5);
insert into ceil values(2,-2,18446744073709551614,-2.5,-5.2);
insert into ceil values(2,-1,18446744073709551614,1.23,-1.23);
insert into ceil values(2,-1,1844674407370955161,1.23,-1.23);
insert into ceil values(2,-1,-9223372036854775808,1.23,-1.23);
insert into ceil values(2,-1,-184467440737095516,1.23,-1.23);
insert into ceil values(2,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(2,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(2,-1,-99999999999999999.9,1.23,-1.23);
insert into ceil values(2,-1,-99999999999999999.9,1.23,-1.23);
select ceil(d),ceil(dl),ceil(fl) from ceil;
ceil(d) ceil(dl) ceil(fl)
5 5.0 -5.0
-2 1.8446744073709552E19 -2.0
-1 1.8446744073709552E19 2.0
-1 1.8446744073709553E18 2.0
-1 -9.223372036854776E18 2.0
-1 -1.8446744073709552E17 2.0
-1 -9.223372036854776E17 2.0
-1 -9.223372036854776E17 2.0
-1 -1.0E17 2.0
-1 -1.0E17 2.0
insert into ceil values(3,-1,18446744073709551614,1.23,-1.23);
insert into ceil values(4,-1,1844674407370955161,1.23,-1.23);
insert into ceil values(5,-1,-9223372036854775808,1.23,-1.23);
insert into ceil values(6,-1,-184467440737095516,1.23,-1.23);
insert into ceil values(7,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(8,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(9,-1,-99999999999999999.9,1.23,-1.23);
insert into ceil values(10,-1,-99999999999999999.9,1.23,-1.23);
select id,ceil(d),ceil(dl),ceil(fl) from ceil;
➤ id[4,32,0] ¦ ceil(d)[-5,64,0] ¦ ceil(dl)[8,54,0] ¦ ceil(fl)[8,54,0] 𝄀
1 ¦ 5 ¦ 5.0 ¦ -5.0 𝄀
2 ¦ -2 ¦ 1.8446744073709552E19 ¦ -2.0 𝄀
3 ¦ -1 ¦ 1.8446744073709552E19 ¦ 2.0 𝄀
4 ¦ -1 ¦ 1.8446744073709553E18 ¦ 2.0 𝄀
5 ¦ -1 ¦ -9.223372036854776E18 ¦ 2.0 𝄀
6 ¦ -1 ¦ -1.8446744073709552E17 ¦ 2.0 𝄀
7 ¦ -1 ¦ -9.223372036854776E17 ¦ 2.0 𝄀
8 ¦ -1 ¦ -9.223372036854776E17 ¦ 2.0 𝄀
9 ¦ -1 ¦ -1.0E17 ¦ 2.0 𝄀
10 ¦ -1 ¦ -1.0E17 ¦ 2.0
drop table t1;
drop table ceil;
drop table abs;
23 changes: 10 additions & 13 deletions test/distributed/cases/function/func_math.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,24 @@ select abs(tan(d))*2 from t1;

-- @suite
-- @setup
-- @bvt:issue#10748
drop table if exists ceil;
create table ceil(id int,d int,dl double,fl float,de decimal);
create table ceil(id int primary key,d int,dl double,fl float,de decimal);
insert into ceil values(1,5,5,-5.5,-5.5);
insert into ceil values(2,-2,18446744073709551614,-2.5,-5.2);
insert into ceil values(2,-1,18446744073709551614,1.23,-1.23);
insert into ceil values(2,-1,1844674407370955161,1.23,-1.23);
insert into ceil values(2,-1,-9223372036854775808,1.23,-1.23);
insert into ceil values(2,-1,-184467440737095516,1.23,-1.23);
insert into ceil values(2,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(2,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(2,-1,-99999999999999999.9,1.23,-1.23);
insert into ceil values(2,-1,-99999999999999999.9,1.23,-1.23);
insert into ceil values(3,-1,18446744073709551614,1.23,-1.23);
insert into ceil values(4,-1,1844674407370955161,1.23,-1.23);
insert into ceil values(5,-1,-9223372036854775808,1.23,-1.23);
insert into ceil values(6,-1,-184467440737095516,1.23,-1.23);
insert into ceil values(7,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(8,-1,-922337203685477580,1.23,-1.23);
insert into ceil values(9,-1,-99999999999999999.9,1.23,-1.23);
insert into ceil values(10,-1,-99999999999999999.9,1.23,-1.23);

-- @case
-- @desc:test for abs
-- @label:bvt
select ceil(d),ceil(dl),ceil(fl) from ceil;

select id,ceil(d),ceil(dl),ceil(fl) from ceil;

drop table t1;
drop table ceil;
drop table abs;
-- @bvt:issue
2 changes: 0 additions & 2 deletions test/distributed/cases/function/func_math_floor.test
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ drop table t1;
select floor(123.342, 1);
select floor(123.45, -1);
select floor(123.342124124214, 100);
-- @bvt:issue#9034
select floor(-123.342124124214, -100);
-- @bvt:issue

select floor(123.342, null);

Expand Down
Loading
Loading