{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/14819","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/14819/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/14819/comments","events_url":"https://api.github.com/repos/apache/spark/issues/14819/events","html_url":"https://github.com/apache/spark/pull/14819","id":173337689,"number":14819,"title":"[SPARK-17246][SQL] Add BigDecimal literal","user":{"login":"hvanhovell","id":9616802,"avatar_url":"https://avatars.githubusercontent.com/u/9616802?v=3","gravatar_id":"","url":"https://api.github.com/users/hvanhovell","html_url":"https://github.com/hvanhovell","followers_url":"https://api.github.com/users/hvanhovell/followers","following_url":"https://api.github.com/users/hvanhovell/following{/other_user}","gists_url":"https://api.github.com/users/hvanhovell/gists{/gist_id}","starred_url":"https://api.github.com/users/hvanhovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvanhovell/subscriptions","organizations_url":"https://api.github.com/users/hvanhovell/orgs","repos_url":"https://api.github.com/users/hvanhovell/repos","events_url":"https://api.github.com/users/hvanhovell/events{/privacy}","received_events_url":"https://api.github.com/users/hvanhovell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-25T23:47:18Z","updated_at":"2016-08-26T02:08:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14819","html_url":"https://github.com/apache/spark/pull/14819","diff_url":"https://github.com/apache/spark/pull/14819.diff","patch_url":"https://github.com/apache/spark/pull/14819.patch"},"body":"## What changes were proposed in this pull request?\r\nThis PR adds parser support for `BigDecimal` literals. If you append the suffix `BD` to a valid number then this will be interpreted as a `BigDecimal`, for example `12.0E10BD` will interpreted into a BigDecimal with scale -9 and precision 3. This is useful in situations where you need exact values.\r\n\r\n## How was this patch tested?\r\nAdded tests to `ExpressionParserSuite`, `ExpressionSQLBuilderSuite` and `SQLQueryTestSuite`.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/242605106","html_url":"https://github.com/apache/spark/pull/14819#issuecomment-242605106","issue_url":"https://api.github.com/repos/apache/spark/issues/14819","id":242605106,"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":"2016-08-26T02:08:39Z","updated_at":"2016-08-26T02:08:39Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64445/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}