{"action":"created","comment":{"url":"https://api.github.com/repos/Teradata/presto/pulls/comments/51716880","id":51716880,"diff_hunk":"@@ -113,6 +113,11 @@ public int hash(Block block, int position)\n     @Override\n     public int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition)\n     {\n+        byte leftInitialByte = leftBlock.getByte(leftPosition, 0);\n+        byte rightInitialByte = rightBlock.getByte(leftPosition, 0);\n+        if (((leftInitialByte & 0x80) ^ (rightInitialByte & 0x80)) == 0x80) {","path":"presto-spi/src/main/java/com/facebook/presto/spi/type/LongDecimalType.java","position":6,"original_position":6,"commit_id":"e854536ad755096cbefecaa3eb34fba68ae2f8f1","original_commit_id":"e854536ad755096cbefecaa3eb34fba68ae2f8f1","user":{"login":"sopel39","id":5989165,"avatar_url":"https://avatars.githubusercontent.com/u/5989165?v=3","gravatar_id":"","url":"https://api.github.com/users/sopel39","html_url":"https://github.com/sopel39","followers_url":"https://api.github.com/users/sopel39/followers","following_url":"https://api.github.com/users/sopel39/following{/other_user}","gists_url":"https://api.github.com/users/sopel39/gists{/gist_id}","starred_url":"https://api.github.com/users/sopel39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopel39/subscriptions","organizations_url":"https://api.github.com/users/sopel39/orgs","repos_url":"https://api.github.com/users/sopel39/repos","events_url":"https://api.github.com/users/sopel39/events{/privacy}","received_events_url":"https://api.github.com/users/sopel39/received_events","type":"User","site_admin":false},"body":"0x80 as constant","created_at":"2016-02-03T12:58:51Z","updated_at":"2016-02-03T12:58:51Z","html_url":"https://github.com/Teradata/presto/pull/117#discussion_r51716880","pull_request_url":"https://api.github.com/repos/Teradata/presto/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/Teradata/presto/pulls/comments/51716880"},"html":{"href":"https://github.com/Teradata/presto/pull/117#discussion_r51716880"},"pull_request":{"href":"https://api.github.com/repos/Teradata/presto/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/Teradata/presto/pulls/117","id":58133412,"html_url":"https://github.com/Teradata/presto/pull/117","diff_url":"https://github.com/Teradata/presto/pull/117.diff","patch_url":"https://github.com/Teradata/presto/pull/117.patch","issue_url":"https://api.github.com/repos/Teradata/presto/issues/117","number":117,"state":"open","locked":false,"title":"Fix LongDecimalType.compareTo","user":{"login":"losipiuk","id":890111,"avatar_url":"https://avatars.githubusercontent.com/u/890111?v=3","gravatar_id":"","url":"https://api.github.com/users/losipiuk","html_url":"https://github.com/losipiuk","followers_url":"https://api.github.com/users/losipiuk/followers","following_url":"https://api.github.com/users/losipiuk/following{/other_user}","gists_url":"https://api.github.com/users/losipiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/losipiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losipiuk/subscriptions","organizations_url":"https://api.github.com/users/losipiuk/orgs","repos_url":"https://api.github.com/users/losipiuk/repos","events_url":"https://api.github.com/users/losipiuk/events{/privacy}","received_events_url":"https://api.github.com/users/losipiuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-03T12:57:47Z","updated_at":"2016-02-03T12:58:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e661581f84f7cfc1560d0374487a92c14b08342","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Teradata/presto/pulls/117/commits","review_comments_url":"https://api.github.com/repos/Teradata/presto/pulls/117/comments","review_comment_url":"https://api.github.com/repos/Teradata/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Teradata/presto/issues/117/comments","statuses_url":"https://api.github.com/repos/Teradata/presto/statuses/e854536ad755096cbefecaa3eb34fba68ae2f8f1","head":{"label":"losipiuk:fix_compare_to_long_decimal_type","ref":"fix_compare_to_long_decimal_type","sha":"e854536ad755096cbefecaa3eb34fba68ae2f8f1","user":{"login":"losipiuk","id":890111,"avatar_url":"https://avatars.githubusercontent.com/u/890111?v=3","gravatar_id":"","url":"https://api.github.com/users/losipiuk","html_url":"https://github.com/losipiuk","followers_url":"https://api.github.com/users/losipiuk/followers","following_url":"https://api.github.com/users/losipiuk/following{/other_user}","gists_url":"https://api.github.com/users/losipiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/losipiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losipiuk/subscriptions","organizations_url":"https://api.github.com/users/losipiuk/orgs","repos_url":"https://api.github.com/users/losipiuk/repos","events_url":"https://api.github.com/users/losipiuk/events{/privacy}","received_events_url":"https://api.github.com/users/losipiuk/received_events","type":"User","site_admin":false},"repo":{"id":37843304,"name":"presto","full_name":"losipiuk/presto","owner":{"login":"losipiuk","id":890111,"avatar_url":"https://avatars.githubusercontent.com/u/890111?v=3","gravatar_id":"","url":"https://api.github.com/users/losipiuk","html_url":"https://github.com/losipiuk","followers_url":"https://api.github.com/users/losipiuk/followers","following_url":"https://api.github.com/users/losipiuk/following{/other_user}","gists_url":"https://api.github.com/users/losipiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/losipiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/losipiuk/subscriptions","organizations_url":"https://api.github.com/users/losipiuk/orgs","repos_url":"https://api.github.com/users/losipiuk/repos","events_url":"https://api.github.com/users/losipiuk/events{/privacy}","received_events_url":"https://api.github.com/users/losipiuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/losipiuk/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":true,"url":"https://api.github.com/repos/losipiuk/presto","forks_url":"https://api.github.com/repos/losipiuk/presto/forks","keys_url":"https://api.github.com/repos/losipiuk/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/losipiuk/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/losipiuk/presto/teams","hooks_url":"https://api.github.com/repos/losipiuk/presto/hooks","issue_events_url":"https://api.github.com/repos/losipiuk/presto/issues/events{/number}","events_url":"https://api.github.com/repos/losipiuk/presto/events","assignees_url":"https://api.github.com/repos/losipiuk/presto/assignees{/user}","branches_url":"https://api.github.com/repos/losipiuk/presto/branches{/branch}","tags_url":"https://api.github.com/repos/losipiuk/presto/tags","blobs_url":"https://api.github.com/repos/losipiuk/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/losipiuk/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/losipiuk/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/losipiuk/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/losipiuk/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/losipiuk/presto/languages","stargazers_url":"https://api.github.com/repos/losipiuk/presto/stargazers","contributors_url":"https://api.github.com/repos/losipiuk/presto/contributors","subscribers_url":"https://api.github.com/repos/losipiuk/presto/subscribers","subscription_url":"https://api.github.com/repos/losipiuk/presto/subscription","commits_url":"https://api.github.com/repos/losipiuk/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/losipiuk/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/losipiuk/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/losipiuk/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/losipiuk/presto/contents/{+path}","compare_url":"https://api.github.com/repos/losipiuk/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/losipiuk/presto/merges","archive_url":"https://api.github.com/repos/losipiuk/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/losipiuk/presto/downloads","issues_url":"https://api.github.com/repos/losipiuk/presto/issues{/number}","pulls_url":"https://api.github.com/repos/losipiuk/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/losipiuk/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/losipiuk/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/losipiuk/presto/labels{/name}","releases_url":"https://api.github.com/repos/losipiuk/presto/releases{/id}","deployments_url":"https://api.github.com/repos/losipiuk/presto/deployments","created_at":"2015-06-22T07:47:05Z","updated_at":"2015-06-22T07:47:14Z","pushed_at":"2016-02-03T12:57:02Z","git_url":"git://github.com/losipiuk/presto.git","ssh_url":"git@github.com:losipiuk/presto.git","clone_url":"https://github.com/losipiuk/presto.git","svn_url":"https://github.com/losipiuk/presto","homepage":"https://prestodb.io","size":92230,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Teradata:decimal_v4","ref":"decimal_v4","sha":"f4674a7d6b064ac871627f49f11dcfb5efd62d50","user":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"repo":{"id":36903368,"name":"presto","full_name":"Teradata/presto","owner":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Teradata/presto","description":"Teradata's Certified Version of Presto -- A Distributed SQL Query Engine for Big Data","fork":true,"url":"https://api.github.com/repos/Teradata/presto","forks_url":"https://api.github.com/repos/Teradata/presto/forks","keys_url":"https://api.github.com/repos/Teradata/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teradata/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teradata/presto/teams","hooks_url":"https://api.github.com/repos/Teradata/presto/hooks","issue_events_url":"https://api.github.com/repos/Teradata/presto/issues/events{/number}","events_url":"https://api.github.com/repos/Teradata/presto/events","assignees_url":"https://api.github.com/repos/Teradata/presto/assignees{/user}","branches_url":"https://api.github.com/repos/Teradata/presto/branches{/branch}","tags_url":"https://api.github.com/repos/Teradata/presto/tags","blobs_url":"https://api.github.com/repos/Teradata/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teradata/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teradata/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teradata/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teradata/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/Teradata/presto/languages","stargazers_url":"https://api.github.com/repos/Teradata/presto/stargazers","contributors_url":"https://api.github.com/repos/Teradata/presto/contributors","subscribers_url":"https://api.github.com/repos/Teradata/presto/subscribers","subscription_url":"https://api.github.com/repos/Teradata/presto/subscription","commits_url":"https://api.github.com/repos/Teradata/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teradata/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teradata/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teradata/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teradata/presto/contents/{+path}","compare_url":"https://api.github.com/repos/Teradata/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teradata/presto/merges","archive_url":"https://api.github.com/repos/Teradata/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teradata/presto/downloads","issues_url":"https://api.github.com/repos/Teradata/presto/issues{/number}","pulls_url":"https://api.github.com/repos/Teradata/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/Teradata/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/Teradata/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teradata/presto/labels{/name}","releases_url":"https://api.github.com/repos/Teradata/presto/releases{/id}","deployments_url":"https://api.github.com/repos/Teradata/presto/deployments","created_at":"2015-06-05T00:38:37Z","updated_at":"2016-01-26T12:57:26Z","pushed_at":"2016-02-03T12:57:47Z","git_url":"git://github.com/Teradata/presto.git","ssh_url":"git@github.com:Teradata/presto.git","clone_url":"https://github.com/Teradata/presto.git","svn_url":"https://github.com/Teradata/presto","homepage":"http://www.teradata.com/presto","size":89884,"stargazers_count":34,"watchers_count":34,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Teradata/presto/pulls/117"},"html":{"href":"https://github.com/Teradata/presto/pull/117"},"issue":{"href":"https://api.github.com/repos/Teradata/presto/issues/117"},"comments":{"href":"https://api.github.com/repos/Teradata/presto/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/Teradata/presto/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/Teradata/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Teradata/presto/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/Teradata/presto/statuses/e854536ad755096cbefecaa3eb34fba68ae2f8f1"}}}}