{"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":8,"created_at":"2015-01-12T08:39:18Z","updated_at":"2015-02-05T01:19:56Z","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/72976769","html_url":"https://github.com/apache/spark/pull/4004#issuecomment-72976769","issue_url":"https://api.github.com/repos/apache/spark/issues/4004","id":72976769,"user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T01:19:56Z","updated_at":"2015-02-05T01:19:56Z","body":"@guowei2 Please help rebasing this, thanks."}}