Github user wzhfy commented on a diff in the pull request:
https://github.com/apache/spark/pull/19438#discussion_r142981865
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/ApproximatePercentileQuerySuite.scala
---
@@ -129,7 +144,7 @@ class ApproximatePercentileQuerySuite extends QueryTest
with SharedSQLContext {
withTempView(table) {
(1 to 1000).toDF("col").createOrReplaceTempView(table)
checkAnswer(
- spark.sql(s"SELECT percentile_approx(col, array(0.25 + 0.25D), 200
+ 800D) FROM $table"),
+ spark.sql(s"SELECT percentile_approx(col, array(0.25 + 0.25D), 200
+ 8000D) FROM $table"),
--- End diff --
here, fix the test case by increasing accuracy
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]