GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/8362
[SPARK-9741][SQL] Approximate Count Distinct using the new UDAF interface.
This PR implements a HyperLogLog based Approximate Count Distinct function
using the new UDAF interface.
The implementation is inspired by the ClearSpring HyperLogLog
implementation and should produce the same results.
There is still some documentation and testing left to do.
cc @yhuai
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-9741
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8362.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #8362
----
commit f52de0236fbfb85053bd6538b12025ba23d34ee1
Author: Herman van Hovell <[email protected]>
Date: 2015-08-21T02:32:15Z
Created HyperLogLog aggregate.
commit 8ec27b93da4f2d39da7c72f7a88c2742cd38318a
Author: Herman van Hovell <[email protected]>
Date: 2015-08-21T12:57:27Z
Added HLL to conversions. More doc. Improvement.
commit e178d9e942720c879dc947a5fd3e6593a351f04f
Author: Herman van Hovell <[email protected]>
Date: 2015-08-21T17:56:39Z
Bug fixes. Style. Documentation.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]