{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/presto/issues/3009","labels_url":"https://api.github.com/repos/facebook/presto/issues/3009/labels{/name}","comments_url":"https://api.github.com/repos/facebook/presto/issues/3009/comments","events_url":"https://api.github.com/repos/facebook/presto/issues/3009/events","html_url":"https://github.com/facebook/presto/issues/3009","id":84169709,"number":3009,"title":"Incorrect grouping for doubles in GROUP BY ","user":{"login":"martint","id":14387,"avatar_url":"https://avatars.githubusercontent.com/u/14387?v=3","gravatar_id":"","url":"https://api.github.com/users/martint","html_url":"https://github.com/martint","followers_url":"https://api.github.com/users/martint/followers","following_url":"https://api.github.com/users/martint/following{/other_user}","gists_url":"https://api.github.com/users/martint/gists{/gist_id}","starred_url":"https://api.github.com/users/martint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martint/subscriptions","organizations_url":"https://api.github.com/users/martint/orgs","repos_url":"https://api.github.com/users/martint/repos","events_url":"https://api.github.com/users/martint/events{/privacy}","received_events_url":"https://api.github.com/users/martint/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-02T19:27:31Z","updated_at":"2015-06-02T19:27:31Z","closed_at":null,"body":"0.0 and -0.0 should be considered not distinct from each other for the purpose of grouping. Currently:\r\n\r\n ```\r\npresto> select v, count(*) from (values 0.0, -0.0) t(v) group by 1;\r\n  v   | _col1 \r\n------+-------\r\n  0.0 |     1 \r\n -0.0 |     1 \r\n(2 rows)\r\n```\r\n\r\nThis behavior is inconsistent with `IS DISTINCT FROM`, too:\r\n\r\n```\r\npresto> select 0.0 is distinct from -0.0;\r\n _col0 \r\n-------\r\n false \r\n(1 row)\r\n```"}}