{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12259","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12259/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12259/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12259/events","html_url":"https://github.com/apache/spark/pull/12259","id":146892069,"number":12259,"title":"[SPARK-14487][SQL] User Defined Type registration without SQLUserDefinedType annotation","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":71,"created_at":"2016-04-08T10:51:06Z","updated_at":"2016-04-28T08:17:02Z","closed_at":"2016-04-28T08:16:43Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12259","html_url":"https://github.com/apache/spark/pull/12259","diff_url":"https://github.com/apache/spark/pull/12259.diff","patch_url":"https://github.com/apache/spark/pull/12259.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nCurrently we use `SQLUserDefinedType` annotation to register UDTs for user classes. However, by doing this, we add Spark dependency to user classes.\r\n\r\nFor some user classes, it is unnecessary to add such dependency that will increase deployment difficulty.\r\n\r\nWe should provide alternative approach to register UDTs for user classes without `SQLUserDefinedType` annotation.\r\n\r\n## How was this patch tested?\r\n\r\n`UserDefinedTypeSuite`\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/215346566","html_url":"https://github.com/apache/spark/pull/12259#issuecomment-215346566","issue_url":"https://api.github.com/repos/apache/spark/issues/12259","id":215346566,"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},"created_at":"2016-04-28T08:17:01Z","updated_at":"2016-04-28T08:17:01Z","body":"@mengxr @dbtsai Thanks for reviewing this!"}}