{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15544","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15544/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15544/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15544/events","html_url":"https://github.com/apache/spark/pull/15544","id":183857582,"number":15544,"title":"[SPARK-17997] [SQL] Add an aggregation function for counting distinct values for multiple intervals","user":{"login":"wzhfy","id":10878553,"avatar_url":"https://avatars.githubusercontent.com/u/10878553?v=3","gravatar_id":"","url":"https://api.github.com/users/wzhfy","html_url":"https://github.com/wzhfy","followers_url":"https://api.github.com/users/wzhfy/followers","following_url":"https://api.github.com/users/wzhfy/following{/other_user}","gists_url":"https://api.github.com/users/wzhfy/gists{/gist_id}","starred_url":"https://api.github.com/users/wzhfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzhfy/subscriptions","organizations_url":"https://api.github.com/users/wzhfy/orgs","repos_url":"https://api.github.com/users/wzhfy/repos","events_url":"https://api.github.com/users/wzhfy/events{/privacy}","received_events_url":"https://api.github.com/users/wzhfy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-19T03:32:11Z","updated_at":"2016-10-20T06:38:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15544","html_url":"https://github.com/apache/spark/pull/15544","diff_url":"https://github.com/apache/spark/pull/15544.diff","patch_url":"https://github.com/apache/spark/pull/15544.patch"},"body":"## What changes were proposed in this pull request?\r\nThis work is a part of [SPARK-17074](https://issues.apache.org/jira/browse/SPARK-17074) to generate histogram statistics.\r\n\r\nThis work is to compute ndv's for bins in equi-height histograms. A bin consists of two endpoints which form an interval of values and the ndv in that interval. For computing histogram statistics, after getting the endpoints, we need an agg function to count distinct values in each interval.\r\n\r\nThis pr also refactors HyperLogLogPlusPlus by extracting a helper class HyperLogLogPlusPlusAlgo, where I put the real algorithm.\r\n\r\n## How was this patch tested?\r\nadd test cases\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/255021679","html_url":"https://github.com/apache/spark/pull/15544#issuecomment-255021679","issue_url":"https://api.github.com/repos/apache/spark/issues/15544","id":255021679,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T06:38:59Z","updated_at":"2016-10-20T06:38:59Z","body":"Test FAILed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/67235/\nTest FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}