Ted-Jiang commented on issue #3140: URL: https://github.com/apache/arrow-datafusion/issues/3140#issuecomment-1217777481
I have found after implement https://github.com/apache/arrow-datafusion/pull/3146#issue-1338872329 ``` select o_orderstatus, approx_percentile_cont(o_totalprice, 0.5, 100000) from order group by o_orderstatus order by 1 limit 5 ; +---------------+---------------------------------------------------------------------+ | o_orderstatus | APPROXPERCENTILECONT(order.o_totalprice,Float64(0.5),Int64(100000)) | +---------------+---------------------------------------------------------------------+ | F | 143289.44656666665 | | O | 143178.60241111112 | | P | 181459.53 | +---------------+---------------------------------------------------------------------+ 3 rows in set. Query took 2.573 seconds. ❯ select o_orderstatus, approx_percentile_cont(o_totalprice, 0.5, 100000) from order group by o_orderstatus order by 1 limit 5 ; +---------------+---------------------------------------------------------------------+ | o_orderstatus | APPROXPERCENTILECONT(order.o_totalprice,Float64(0.5),Int64(100000)) | +---------------+---------------------------------------------------------------------+ | F | 143289.44656666665 | | O | 143178.60241111112 | | P | 181459.53 | +---------------+---------------------------------------------------------------------+ 3 rows in set. Query took 2.497 seconds. ❯ select o_orderstatus, approx_percentile_cont(o_totalprice, 0.5, 100000) from order group by o_orderstatus order by 1 limit 5 ; +---------------+---------------------------------------------------------------------+ | o_orderstatus | APPROXPERCENTILECONT(order.o_totalprice,Float64(0.5),Int64(100000)) | +---------------+---------------------------------------------------------------------+ | F | 143289.44656666665 | | O | 143178.60241111112 | | P | 181459.53 | +---------------+---------------------------------------------------------------------+ 3 rows in set. Query took 2.633 seconds. ``` it not change when centroids numbers are 100000🤔 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
