forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for kurtosis Spark aggregate function (facebookincubator#…
…9233) Summary: Spark uses Pearson's formula for calculating the kurtosis coefficient, which is m4 / (m2^2) - 3. Meanwhile, Presto employs the sample kurtosis calculation formula. The results from the two methods are completely different, necessitating the implementation of a separate ResultAccessor for Spark's kurtosis. Spark's implement https://github.com/apache/spark/blob/e22ddcbd852c95375d39fd6074627e1b5a91c6e7/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/CentralMomentAgg.scala#L333-L336 Pull Request resolved: facebookincubator#9233 Reviewed By: mbasmanova Differential Revision: D55331913 Pulled By: Yuhta fbshipit-source-id: 82eb077325d828bc083da17596a9df56ad06bf56
- Loading branch information
1 parent
2d832ee
commit 494b888
Showing
4 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters