{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/presto/issues/2321","labels_url":"https://api.github.com/repos/facebook/presto/issues/2321/labels{/name}","comments_url":"https://api.github.com/repos/facebook/presto/issues/2321/comments","events_url":"https://api.github.com/repos/facebook/presto/issues/2321/events","html_url":"https://github.com/facebook/presto/issues/2321","id":56555599,"number":2321,"title":"Implement hash function","user":{"login":"electrum","id":9230,"avatar_url":"https://avatars.githubusercontent.com/u/9230?v=3","gravatar_id":"","url":"https://api.github.com/users/electrum","html_url":"https://github.com/electrum","followers_url":"https://api.github.com/users/electrum/followers","following_url":"https://api.github.com/users/electrum/following{/other_user}","gists_url":"https://api.github.com/users/electrum/gists{/gist_id}","starred_url":"https://api.github.com/users/electrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electrum/subscriptions","organizations_url":"https://api.github.com/users/electrum/orgs","repos_url":"https://api.github.com/users/electrum/repos","events_url":"https://api.github.com/users/electrum/events{/privacy}","received_events_url":"https://api.github.com/users/electrum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/presto/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T17:02:54Z","updated_at":"2015-02-04T17:02:54Z","closed_at":null,"body":"Implement a generic `hash()` function that takes any number of arguments of any type and returns the hash of the values as a `BIGINT`. The type of the hash is system dependent and subject to change between releases. This function will be useful for things like bucketing or sampling where the result of the hash is not stored and is only used during the query.\r\n\r\nThis can be implemented using the `hash` method of `Block`, though we might want to augment that in the future with a 64-bit version."}}