-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
Describe the bug
Column Data A: (65536, null, null,null)
Call function percentile_approx(A, 0.5) should return 65536, but result is nan
To Reproduce
Steps to reproduce the behavior:
- create table
CREATE TABLE `per` (
`A` bigint(20) NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(`A`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`A`) BUCKETS 5
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "V2"
);
- Insert data into the table
insert into per values(65536)
- set parallel_fragment_exec_instance_num
set parallel_fragment_exec_instance_num = 15;
- Do query
SELECT PERCENTILE_APPROX(A, 0.5) from per;
+-----------------------------+
| percentile_approx(`A`, 0.5) |
+-----------------------------+
| 65536 |
+-----------------------------+
There is a certain probability
result is
SELECT PERCENTILE_APPROX(A, 0.5) from per;
+-----------------------------+
| percentile_approx(`A`, 0.5) |
+-----------------------------+
| nan |
+-----------------------------+
Metadata
Metadata
Assignees
Labels
No labels