Skip to content

Commit

Permalink
better config description
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Aug 19, 2023
1 parent da83c65 commit 93a018c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4370,7 +4370,10 @@ object SQLConf {

val LEGACY_PERCENTILE_DISC_CALCULATION = buildConf("spark.sql.legacy.percentileDiscCalculation")
.internal()
.doc("If true the old bogus percentile_disc calculation is used.")
.doc("If true, the old bogus percentile_disc calculation is used. The old calculation " +
"incorrectly mapped the requested percentile to the sorted range of values in some cases " +
"and so returned incorrect results. Also, the new implementation is faster as it doesn't " +
"contain the interpolation logic that the old percentile_cont based one did.")
.version("4.0.0")
.booleanConf
.createWithDefault(false)
Expand Down

0 comments on commit 93a018c

Please sign in to comment.