{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/6835","labels_url":"https://api.github.com/repos/apache/spark/issues/6835/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/6835/comments","events_url":"https://api.github.com/repos/apache/spark/issues/6835/events","html_url":"https://github.com/apache/spark/pull/6835","id":88614393,"number":6835,"title":"[SPARK-8280][SPARK-8281][SQL]Handle NaN, null and Infinity in math","user":{"login":"yijieshen","id":1387718,"avatar_url":"https://avatars.githubusercontent.com/u/1387718?v=3","gravatar_id":"","url":"https://api.github.com/users/yijieshen","html_url":"https://github.com/yijieshen","followers_url":"https://api.github.com/users/yijieshen/followers","following_url":"https://api.github.com/users/yijieshen/following{/other_user}","gists_url":"https://api.github.com/users/yijieshen/gists{/gist_id}","starred_url":"https://api.github.com/users/yijieshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yijieshen/subscriptions","organizations_url":"https://api.github.com/users/yijieshen/orgs","repos_url":"https://api.github.com/users/yijieshen/repos","events_url":"https://api.github.com/users/yijieshen/events{/privacy}","received_events_url":"https://api.github.com/users/yijieshen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-16T04:37:41Z","updated_at":"2015-06-18T15:55:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/6835","html_url":"https://github.com/apache/spark/pull/6835","diff_url":"https://github.com/apache/spark/pull/6835.diff","patch_url":"https://github.com/apache/spark/pull/6835.patch"},"body":"Just as their counterparts in Hive:\r\n\r\n`UDFAsin` & `UDFAcos` would just return NaN if its argument is NaN or its absolute value is greater than 1, therefore I think it's enough to just remove NaN checking before return.\r\n\r\n`Log*` would first check `argument <= 0.0` and return null for 0.0 instead of `-Infinity` "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/113199893","html_url":"https://github.com/apache/spark/pull/6835#issuecomment-113199893","issue_url":"https://api.github.com/repos/apache/spark/issues/6835","id":113199893,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T15:55:11Z","updated_at":"2015-06-18T15:55:11Z","body":"  [Test build #35139 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/35139/consoleFull) for   PR 6835 at commit [`4be400a`](https://github.com/apache/spark/commit/4be400a5581fca583a9d2949510b76444cb1de11)."}}