{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/22878","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/22878/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/22878/comments","events_url":"https://api.github.com/repos/apache/spark/issues/22878/events","html_url":"https://github.com/apache/spark/pull/22878","id":375089346,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NjE3MTM4","number":22878,"title":"[SPARK-25789][SQL] Support for Dataset of Avro","user":{"login":"xuanyuanking","id":4833765,"node_id":"MDQ6VXNlcjQ4MzM3NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4833765?v=4","gravatar_id":"","url":"https://api.github.com/users/xuanyuanking","html_url":"https://github.com/xuanyuanking","followers_url":"https://api.github.com/users/xuanyuanking/followers","following_url":"https://api.github.com/users/xuanyuanking/following{/other_user}","gists_url":"https://api.github.com/users/xuanyuanking/gists{/gist_id}","starred_url":"https://api.github.com/users/xuanyuanking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuanyuanking/subscriptions","organizations_url":"https://api.github.com/users/xuanyuanking/orgs","repos_url":"https://api.github.com/users/xuanyuanking/repos","events_url":"https://api.github.com/users/xuanyuanking/events{/privacy}","received_events_url":"https://api.github.com/users/xuanyuanking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-29T15:59:08Z","updated_at":"2018-10-30T02:41:40Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/22878","html_url":"https://github.com/apache/spark/pull/22878","diff_url":"https://github.com/apache/spark/pull/22878.diff","patch_url":"https://github.com/apache/spark/pull/22878.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nPlease credit to @bdrillard cause this mainly based on his previous work.\r\n\r\nThis PR add support for Dataset of Avro records in an API that would allow the user to provide a class to an Encoder for Avro, analogous to the Bean encoder.\r\n\r\n- Add `ObjectCast` and `InitializeAvroObject`(analogous to `InitializeJavaBean`) expression.\r\n- Add an AvroEncoder for Datasets of Avro records to Spark.\r\n- Add type-inference utilities `AvroTypeInference` for Avro object and SQL DataType (analogous to `JavaTypeInference`).\r\n\r\n## How was this patch tested?\r\n\r\nAdd UT in AvroSuite.scala and manual test by modified SQLExample with external avro package.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/434151447","html_url":"https://github.com/apache/spark/pull/22878#issuecomment-434151447","issue_url":"https://api.github.com/repos/apache/spark/issues/22878","id":434151447,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDE1MTQ0Nw==","user":{"login":"xuanyuanking","id":4833765,"node_id":"MDQ6VXNlcjQ4MzM3NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4833765?v=4","gravatar_id":"","url":"https://api.github.com/users/xuanyuanking","html_url":"https://github.com/xuanyuanking","followers_url":"https://api.github.com/users/xuanyuanking/followers","following_url":"https://api.github.com/users/xuanyuanking/following{/other_user}","gists_url":"https://api.github.com/users/xuanyuanking/gists{/gist_id}","starred_url":"https://api.github.com/users/xuanyuanking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuanyuanking/subscriptions","organizations_url":"https://api.github.com/users/xuanyuanking/orgs","repos_url":"https://api.github.com/users/xuanyuanking/repos","events_url":"https://api.github.com/users/xuanyuanking/events{/privacy}","received_events_url":"https://api.github.com/users/xuanyuanking/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T02:41:40Z","updated_at":"2018-10-30T02:41:40Z","author_association":"CONTRIBUTOR","body":"@dongjoon-hyun Thanks for your comment, let me see how to achieve this, @bdrillard 's commits based on databricks/spark-avro."}}
{"actor":{"display_login":"xuanyuanking"}}