{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/10399","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/10399/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/10399/comments","events_url":"https://api.github.com/repos/apache/spark/issues/10399/events","html_url":"https://github.com/apache/spark/pull/10399","id":123141876,"number":10399,"title":"[SPARK-12443][SQL] encoderFor should support Decimal","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars.githubusercontent.com/u/68855?v=3","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2015-12-20T07:45:55Z","updated_at":"2016-03-22T16:55:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10399","html_url":"https://github.com/apache/spark/pull/10399","diff_url":"https://github.com/apache/spark/pull/10399.diff","patch_url":"https://github.com/apache/spark/pull/10399.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nJIRA: https://issues.apache.org/jira/browse/SPARK-12443\r\n\r\n`constructorFor` will call `dataTypeFor` to determine if a type is `ObjectType` or not. If there is not case for `Decimal`, it will be recognized as `ObjectType` and causes the bug.\r\n\r\n## How was this patch tested?\r\n\r\nTest is added into `ExpressionEncoderSuite`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/199904449","html_url":"https://github.com/apache/spark/pull/10399#issuecomment-199904449","issue_url":"https://api.github.com/repos/apache/spark/issues/10399","id":199904449,"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-03-22T16:55:43Z","updated_at":"2016-03-22T16:55:43Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/53779/\nTest PASSed."}}