@@ -1351,7 +1351,7 @@ DROP TABLE median_window_test;
13511351query RT
13521352select approx_median(arrow_cast(col_f32, 'Float16')), arrow_typeof(approx_median(arrow_cast(col_f32, 'Float16'))) from median_table;
13531353----
1354- 2.75 Float16
1354+ 2.1992188 Float16
13551355
13561356# This shouldn't be NaN, see:
13571357# https://github.com/apache/datafusion/issues/18945
@@ -1369,7 +1369,7 @@ select
13691369 arrow_typeof(approx_percentile_cont(0.5) within group (order by arrow_cast(col_f32, 'Float16')))
13701370from median_table;
13711371----
1372- 2.75 Float16
1372+ 2.1992188 Float16
13731373
13741374query ?T
13751375select approx_median(NULL), arrow_typeof(approx_median(NULL)) from median_table;
@@ -1388,7 +1388,7 @@ select median(c), arrow_typeof(median(c)) from t;
13881388query RT
13891389select approx_median(c), arrow_typeof(approx_median(c)) from t;
13901390----
1391- 0.00035 Float64
1391+ 0.0003 Float64
13921392
13931393statement ok
13941394drop table t;
@@ -2322,7 +2322,7 @@ SELECT c1, approx_percentile_cont(0.95) WITHIN GROUP (ORDER BY c3) AS c3_p95 FRO
23222322a 65
23232323b 68
23242324c 118
2325- d 123
2325+ d 125
23262326e 112
23272327
23282328
@@ -2333,7 +2333,7 @@ SELECT c1, approx_percentile_cont(c3, 0.95) AS c3_p95 FROM aggregate_test_100 GR
23332333a 65
23342334b 68
23352335c 118
2336- d 123
2336+ d 125
23372337e 112
23382338
23392339
@@ -2344,7 +2344,7 @@ SELECT c1, approx_percentile_cont(c2, 0.95) AS c2, approx_percentile_cont(c3, 0.
23442344a 5 65
23452345b 5 68
23462346c 5 118
2347- d 5 123
2347+ d 5 125
23482348e 5 112
23492349
23502350# error is unique to this UDAF
@@ -2362,11 +2362,11 @@ e 3 40.333333333333
23622362query TI
23632363SELECT c1, approx_percentile_cont(0.95) WITHIN GROUP (ORDER BY c3 DESC) AS c3_p95 FROM aggregate_test_100 GROUP BY 1 ORDER BY 1
23642364----
2365- a -100
2366- b -111
2365+ a -101
2366+ b -117
23672367c -107
2368- d -98
2369- e -85
2368+ d -99
2369+ e -86
23702370
23712371# csv_query_approx_percentile_cont_with_weight (2)
23722372query TI
@@ -2375,7 +2375,7 @@ SELECT c1, approx_percentile_cont_with_weight(1, 0.95) WITHIN GROUP (ORDER BY c3
23752375a 65
23762376b 68
23772377c 118
2378- d 123
2378+ d 125
23792379e 112
23802380
23812381# csv_query_approx_percentile_cont_with_weight alternate syntax
@@ -2385,18 +2385,18 @@ SELECT c1, approx_percentile_cont_with_weight(c3, 1, 0.95) AS c3_p95 FROM aggreg
23852385a 65
23862386b 68
23872387c 118
2388- d 123
2388+ d 125
23892389e 112
23902390
23912391
23922392query TI
23932393SELECT c1, approx_percentile_cont_with_weight(1, 0.95) WITHIN GROUP (ORDER BY c3 DESC) AS c3_p95 FROM aggregate_test_100 GROUP BY 1 ORDER BY 1
23942394----
2395- a -100
2396- b -111
2395+ a -101
2396+ b -117
23972397c -107
2398- d -98
2399- e -85
2398+ d -99
2399+ e -86
24002400
24012401# csv_query_approx_percentile_cont_with_histogram_bins
24022402query TI
@@ -2405,7 +2405,7 @@ SELECT c1, approx_percentile_cont(0.95, 200) WITHIN GROUP (ORDER BY c3) AS c3_p9
24052405a 65
24062406b 68
24072407c 118
2408- d 123
2408+ d 125
24092409e 112
24102410
24112411query TI
@@ -8804,9 +8804,9 @@ FROM (SELECT * FROM stream_test ORDER BY g LIMIT 10000)
88048804GROUP BY g
88058805ORDER BY g;
88068806----
8807- 1 2 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
8808- 2 2 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
8809- 3 2 1.5 1.5 1.5 1.5 1.5 1.5 1.5 1.5
8807+ 1 2 1 1.5 1.5 1 1 1.5 1 1
8808+ 2 2 1 1.5 1.5 1 1 1.5 1 1
8809+ 3 2 1 1.5 1.5 1 1 1.5 1 1
88108810
88118811# Config reset
88128812
0 commit comments