kosiew commented on code in PR #25275:
URL: https://github.com/apache/datafusion/pull/25275#discussion_r4103576655


##########
datafusion/sqllogictest/test_files/aggregate.slt:
##########
@@ -1192,6 +1192,17 @@ DROP TABLE distinct_pct_nulls;
 
 # percentile_cont for shorter floats
 
+# Regression test for https://github.com/apache/datafusion/issues/25266
+# Float interpolation must not quantize weights to six decimal places.
+query RRR
+SELECT
+  percentile_cont(arrow_cast(x, 'Float16'), arrow_cast(0.00000025, 'Float64')),

Review Comment:
   This test covers `percentile_cont(value, percentile)`. Could you also add 
the equivalent `percentile_cont(percentile) WITHIN GROUP (ORDER BY value)` 
assertion? It follows a separate SQL-planning path, so that would cover the 
SQL-standard form too.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to