Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -54,7 +54,6 @@ while ($left <= $cnt)
}
--disable_query_log
let $max_allowed_packet=`select @@global.max_allowed_packet`;
SET GLOBAL max_allowed_packet = 4194304;
connection default;
disconnect conn_admin;
@ -117,18 +116,4 @@ select rpad('a', 6, '阿斯'), length(rpad('a', 6, '阿斯')) from dual;
select rpad('a', 7, '阿斯'), length(rpad('a', 7, '阿斯')) from dual;
select rpad('a', 8, '阿斯'), length(rpad('a', 8, '阿斯')) from dual;
--disable_warnings
drop table if exists t1;
--enable_warnings
create table t1(c1 int);
insert into t1 values(18);
select lpad("", cast(c1 as decimal), "") from t1;
select lpad("123", cast(c1 as decimal), "") from t1;
select lpad("", cast(c1 as decimal), "123") from t1;
select rpad("", cast(c1 as decimal), "") from t1;
select rpad("123", cast(c1 as decimal), "") from t1;
select rpad("", cast(c1 as decimal), "123") from t1;
drop table t1;
--sleep 2
eval SET GLOBAL max_allowed_packet = $max_allowed_packet;

View File

@ -47,17 +47,5 @@ select substr(3.14159, 2.9, 2.9) from dual;
select substr(3.14159, 2.1, 2.1) from dual;
--enable_warnings
# bug:
select substr(1, 1, 9223372036854775807);
select substr(123, 2, 9223372036854775806);
--disable_warnings
drop view if exists v1;
--enable_warnings
create view v1 as select substr(123, 2, 9223372036854775807);
desc v1;
select * from v1;
drop view v1;
SELECT NULL ORDER BY SUBSTR ( 9223372036854775807 FROM @@ob_query_timeout FOR 9223372036854775807 );
connection syscon;
--sleep 2

View File

@ -343,33 +343,3 @@ insert into t3 (c1, c2, c3, c4) values (26, 9,17,17);
insert into t3 (c1, c2, c3, c4) values (28, 3,18,18);
select /*+ no_rewrite*/ * from t1 where exists (select /*+no_unnest */ 1 from t3 where t1.c1 > t3.c3 and t3.c4 < 100 limit 1) ;
--disable_warnings
drop table if exists t;
drop table if exists t2;
drop table if exists t3;
--enable_warnings
create table t(c1 int);
create table t2(c1 int);
create table t3(c1 int, c2 varchar(1500)) partition by hash(c1) partitions 4;
insert into t2 values(1000);
insert into t3 values(0, repeat('0123456789', 100));
insert into t3 values(0, repeat('0123456789', 101));
insert into t3 values(0, repeat('0123456789', 101));
insert into t3 values(0, repeat('0123456789', 101));
insert into t3 values(0, repeat('0123456789', 101));
insert into t3 values(0, repeat('0123456789', 101));
insert into t3 select * from t3 where length(c2) > 1000;
insert into t3 select * from t3 where length(c2) > 1000;
insert into t3 select * from t3 where length(c2) > 1000;
insert into t3 select * from t3 where length(c2) > 1000;
insert into t3 select * from t3 where length(c2) > 1000;
insert into t3 select * from t3 where length(c2) > 1000;
insert into t3 select * from t3 where length(c2) > 1000;
select /*+ no_rewrite */ * from t where exists (select 1 from t2, t3 where t2.c1 = length(t3.c2));
--disable_warnings
drop table if exists t;
drop table if exists t2;
drop table if exists t3;
--enable_warnings