{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9705","labels_url":"https://api.github.com/repos/apache/spark/issues/9705/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9705/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9705/events","html_url":"https://github.com/apache/spark/pull/9705","id":116861988,"number":9705,"title":"[SPARK-11720] [SQL][ML] Return Double.NaN instead of null for Mean and Average ","user":{"login":"JihongMA","id":7254535,"avatar_url":"https://avatars.githubusercontent.com/u/7254535?v=3","gravatar_id":"","url":"https://api.github.com/users/JihongMA","html_url":"https://github.com/JihongMA","followers_url":"https://api.github.com/users/JihongMA/followers","following_url":"https://api.github.com/users/JihongMA/following{/other_user}","gists_url":"https://api.github.com/users/JihongMA/gists{/gist_id}","starred_url":"https://api.github.com/users/JihongMA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JihongMA/subscriptions","organizations_url":"https://api.github.com/users/JihongMA/orgs","repos_url":"https://api.github.com/users/JihongMA/repos","events_url":"https://api.github.com/users/JihongMA/events{/privacy}","received_events_url":"https://api.github.com/users/JihongMA/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-13T22:00:36Z","updated_at":"2015-11-16T22:31:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9705","html_url":"https://github.com/apache/spark/pull/9705","diff_url":"https://github.com/apache/spark/pull/9705.diff","patch_url":"https://github.com/apache/spark/pull/9705.patch"},"body":"return Double.NaN for mean/average when count == 0 for all numeric types that is converted to Double, Decimal type continue to return null. "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/157192370","html_url":"https://github.com/apache/spark/pull/9705#issuecomment-157192370","issue_url":"https://api.github.com/repos/apache/spark/issues/9705","id":157192370,"user":{"login":"JihongMA","id":7254535,"avatar_url":"https://avatars.githubusercontent.com/u/7254535?v=3","gravatar_id":"","url":"https://api.github.com/users/JihongMA","html_url":"https://github.com/JihongMA","followers_url":"https://api.github.com/users/JihongMA/followers","following_url":"https://api.github.com/users/JihongMA/following{/other_user}","gists_url":"https://api.github.com/users/JihongMA/gists{/gist_id}","starred_url":"https://api.github.com/users/JihongMA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JihongMA/subscriptions","organizations_url":"https://api.github.com/users/JihongMA/orgs","repos_url":"https://api.github.com/users/JihongMA/repos","events_url":"https://api.github.com/users/JihongMA/events{/privacy}","received_events_url":"https://api.github.com/users/JihongMA/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T22:31:42Z","updated_at":"2015-11-16T22:31:42Z","body":"@yhuai @mengxr, agreed, it will make the behavior of stats function in consistent across Spark SQL."}}