{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22494","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22494/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22494/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22494/events","html_url":"https://github.com/apache/spark/pull/22494","id":362184088,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2OTY5MDE5","number":22494,"title":"[SPARK-25454][SQL] add a new config for picking minimum precision for integral literals","user":{"login":"cloud-fan","id":3182036,"node_id":"MDQ6VXNlcjMxODIwMzY=","avatar_url":"https://avatars3.githubusercontent.com/u/3182036?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-fan","html_url":"https://github.com/cloud-fan","followers_url":"https://api.github.com/users/cloud-fan/followers","following_url":"https://api.github.com/users/cloud-fan/following{/other_user}","gists_url":"https://api.github.com/users/cloud-fan/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-fan/subscriptions","organizations_url":"https://api.github.com/users/cloud-fan/orgs","repos_url":"https://api.github.com/users/cloud-fan/repos","events_url":"https://api.github.com/users/cloud-fan/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-fan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2018-09-20T13:19:33Z","updated_at":"2018-09-21T17:54:31Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22494","html_url":"https://github.com/apache/spark/pull/22494","diff_url":"https://github.com/apache/spark/pull/22494.diff","patch_url":"https://github.com/apache/spark/pull/22494.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nhttps://github.com/apache/spark/pull/20023 proposed to allow precision lose during decimal operations, to reduce the possibilities of overflow. This is a behavior change and is protected by the DECIMAL_OPERATIONS_ALLOW_PREC_LOSS config. However, that PR introduced another behavior change: pick a minimum precision for integral literals, which is not protected by a config. This PR add a new config for it: `spark.sql.literal.pickMinimumPrecision`.\r\n\r\nThis can allow users to work around issue in SPARK-25454, which is caused by a long-standing bug of negative scale.\r\n\r\n## How was this patch tested?\r\n\r\na new test\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/423621061","html_url":"https://github.com/apache/spark/pull/22494#issuecomment-423621061","issue_url":"https://api.github.com/repos/apache/spark/issues/22494","id":423621061,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzYyMTA2MQ==","user":{"login":"SparkQA","id":8108735,"node_id":"MDQ6VXNlcjgxMDg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T17:54:31Z","updated_at":"2018-09-21T17:54:31Z","author_association":"NONE","body":"**[Test build #96429 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/96429/testReport)** for PR 22494 at commit [`b4fdd13`](https://github.com/apache/spark/commit/b4fdd1307059c7df7c386a96aad6bc17b593d9c5).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}