{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/4004","labels_url":"https://api.github.com/repos/apache/spark/issues/4004/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/4004/comments","events_url":"https://api.github.com/repos/apache/spark/issues/4004/events","html_url":"https://github.com/apache/spark/pull/4004","id":54030285,"number":4004,"title":"[SPARK-5203][SQL] fix union with different decimal type","user":{"login":"guowei2","id":6811813,"avatar_url":"https://avatars.githubusercontent.com/u/6811813?v=3","gravatar_id":"","url":"https://api.github.com/users/guowei2","html_url":"https://github.com/guowei2","followers_url":"https://api.github.com/users/guowei2/followers","following_url":"https://api.github.com/users/guowei2/following{/other_user}","gists_url":"https://api.github.com/users/guowei2/gists{/gist_id}","starred_url":"https://api.github.com/users/guowei2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guowei2/subscriptions","organizations_url":"https://api.github.com/users/guowei2/orgs","repos_url":"https://api.github.com/users/guowei2/repos","events_url":"https://api.github.com/users/guowei2/events{/privacy}","received_events_url":"https://api.github.com/users/guowei2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-01-12T08:39:18Z","updated_at":"2015-03-31T06:58:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4004","html_url":"https://github.com/apache/spark/pull/4004","diff_url":"https://github.com/apache/spark/pull/4004.diff","patch_url":"https://github.com/apache/spark/pull/4004.patch"},"body":"   When union non-decimal types with decimals, we use the following rules:\r\n      - FIRST `intTypeToFixed`, then fixed union decimals with precision/scale p1/s2 and p2/s2  will be promoted to\r\n      DecimalType(max(p1, p2), max(s1, s2))\r\n      - FLOAT and DOUBLE cause fixed-length decimals to turn into DOUBLE (this is the same as Hive,\r\n      but note that unlimited decimals are considered bigger than doubles in WidenTypes)"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/87967719","html_url":"https://github.com/apache/spark/pull/4004#issuecomment-87967719","issue_url":"https://api.github.com/repos/apache/spark/issues/4004","id":87967719,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","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":"2015-03-31T06:58:25Z","updated_at":"2015-03-31T06:58:25Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29451/\nTest PASSed."}}