Search before asking
Version
2.1.5
What's Wrong?
CentOS7.9/openEuler-22.03, Doris2.1.5,
The second parameter of the Radom function being a variable can cause the BE node to crash.
Can be reproduced 100%

What You Expected?
Fix it
How to Reproduce?
CREATETABLE `t_1` (
`code`VARCHAR(36) NULL
) ENGINE=OLAP
DUPLICATE KEY(`code`)
DISTRIBUTED BY HASH(`code`) BUCKETS 1
PROPERTIES (
"replication_allocation"="tag.location.default: 1"
);
CREATETABLE `t_2` (
`code`VARCHAR(36) NULL
) ENGINE=OLAP
DUPLICATE KEY(`code`)
DISTRIBUTED BY HASH(`code`) BUCKETS 1
PROPERTIES (
"replication_allocation"="tag.location.default: 1"
);
insert into t_1(`code`) values('100');
insert into t_1(`code`) values('200');
insert into t_1(`code`) values('300');
insert into t_2(`code`) values('1');
insert into t_2(`code`) values('101');
insert into t_2(`code`) values('951744758986133504');
SELECT random(1,randnum) AS vnum,m.*FROM (select*from t_2) m LEFT JOIN (SELECTcount(1) as randnum,code from t_1 GROUP BY code) d ONm.code=d.code;Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
Search before asking
Version
2.1.5
What's Wrong?
CentOS7.9/openEuler-22.03, Doris2.1.5,
The second parameter of the Radom function being a variable can cause the BE node to crash.
Can be reproduced 100%
What You Expected?
Fix it
How to Reproduce?
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct