{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/21481","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/21481/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/21481/comments","events_url":"https://api.github.com/repos/apache/spark/issues/21481/events","html_url":"https://github.com/apache/spark/pull/21481","id":328652823,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMTM2Mzc1","number":21481,"title":"[SPARK-24452][SQL][Core] Avoid possible overflow in int add or multiple","user":{"login":"kiszk","id":1315079,"node_id":"MDQ6VXNlcjEzMTUwNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1315079?v=4","gravatar_id":"","url":"https://api.github.com/users/kiszk","html_url":"https://github.com/kiszk","followers_url":"https://api.github.com/users/kiszk/followers","following_url":"https://api.github.com/users/kiszk/following{/other_user}","gists_url":"https://api.github.com/users/kiszk/gists{/gist_id}","starred_url":"https://api.github.com/users/kiszk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiszk/subscriptions","organizations_url":"https://api.github.com/users/kiszk/orgs","repos_url":"https://api.github.com/users/kiszk/repos","events_url":"https://api.github.com/users/kiszk/events{/privacy}","received_events_url":"https://api.github.com/users/kiszk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-01T20:36:18Z","updated_at":"2018-06-01T20:53:41Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/21481","html_url":"https://github.com/apache/spark/pull/21481","diff_url":"https://github.com/apache/spark/pull/21481.diff","patch_url":"https://github.com/apache/spark/pull/21481.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis PR fixes possible overflow in int add or multiply.\r\n\r\nThe following assignments may cause overflow in right hand side. As a result, the result may be negative.\r\n```\r\nlong = int * int\r\nlong = int + int\r\n```\r\n\r\nTo avoid this problem, this PR performs cast from int to long in right hand side.\r\n\r\n## How was this patch tested?\r\n\r\nExisting UTs."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/394006111","html_url":"https://github.com/apache/spark/pull/21481#issuecomment-394006111","issue_url":"https://api.github.com/repos/apache/spark/issues/21481","id":394006111,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDAwNjExMQ==","user":{"login":"AmplabJenkins","id":4031291,"node_id":"MDQ6VXNlcjQwMzEyOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T20:53:41Z","updated_at":"2018-06-01T20:53:41Z","author_association":"NONE","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}