{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7203","labels_url":"https://api.github.com/repos/apache/spark/issues/7203/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7203/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7203/events","html_url":"https://github.com/apache/spark/pull/7203","id":92772378,"number":7203,"title":"[SPARK-8572] [SQL] Type coercion for ScalaUDFs","user":{"login":"piaozhexiu","id":179618,"avatar_url":"https://avatars.githubusercontent.com/u/179618?v=3","gravatar_id":"","url":"https://api.github.com/users/piaozhexiu","html_url":"https://github.com/piaozhexiu","followers_url":"https://api.github.com/users/piaozhexiu/followers","following_url":"https://api.github.com/users/piaozhexiu/following{/other_user}","gists_url":"https://api.github.com/users/piaozhexiu/gists{/gist_id}","starred_url":"https://api.github.com/users/piaozhexiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piaozhexiu/subscriptions","organizations_url":"https://api.github.com/users/piaozhexiu/orgs","repos_url":"https://api.github.com/users/piaozhexiu/repos","events_url":"https://api.github.com/users/piaozhexiu/events{/privacy}","received_events_url":"https://api.github.com/users/piaozhexiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-03T01:40:41Z","updated_at":"2015-07-03T06:48:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7203","html_url":"https://github.com/apache/spark/pull/7203","diff_url":"https://github.com/apache/spark/pull/7203.diff","patch_url":"https://github.com/apache/spark/pull/7203.patch"},"body":"Implemented type coercion for udf arguments in Scala. The changes include-\r\n* Add `with ExpectsInputTypes ` to `ScalaUDF` class.\r\n* Pass down argument types info from `UDFRegistration` and `functions`.\r\n\r\nWith this patch, the example query in [SPARK-8572](https://issues.apache.org/jira/browse/SPARK-8572) no longer throws a type cast error at runtime.\r\n\r\nAlso added a unit test to `UDFSuite` in which a decimal type is passed to a udf that expects an int."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/118253650","html_url":"https://github.com/apache/spark/pull/7203#issuecomment-118253650","issue_url":"https://api.github.com/repos/apache/spark/issues/7203","id":118253650,"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-07-03T06:48:10Z","updated_at":"2015-07-03T06:48:10Z","body":" Merged build triggered."}}