{"action":"opened","issue":{"url":"https://api.github.com/repos/apache/arrow/issues/2241","repository_url":"https://api.github.com/repos/apache/arrow","labels_url":"https://api.github.com/repos/apache/arrow/issues/2241/labels{/name}","comments_url":"https://api.github.com/repos/apache/arrow/issues/2241/comments","events_url":"https://api.github.com/repos/apache/arrow/issues/2241/events","html_url":"https://github.com/apache/arrow/issues/2241","id":339904301,"node_id":"MDU6SXNzdWUzMzk5MDQzMDE=","number":2241,"title":"Using struct in c++","user":{"login":"dragan224","id":6200587,"node_id":"MDQ6VXNlcjYyMDA1ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6200587?v=4","gravatar_id":"","url":"https://api.github.com/users/dragan224","html_url":"https://github.com/dragan224","followers_url":"https://api.github.com/users/dragan224/followers","following_url":"https://api.github.com/users/dragan224/following{/other_user}","gists_url":"https://api.github.com/users/dragan224/gists{/gist_id}","starred_url":"https://api.github.com/users/dragan224/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragan224/subscriptions","organizations_url":"https://api.github.com/users/dragan224/orgs","repos_url":"https://api.github.com/users/dragan224/repos","events_url":"https://api.github.com/users/dragan224/events{/privacy}","received_events_url":"https://api.github.com/users/dragan224/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T15:52:47Z","updated_at":"2018-07-10T15:52:47Z","closed_at":null,"author_association":"NONE","body":"Does anyone have a working example of using structs in arrow in c++? How would I write code that creates an arrow table using the following schema for example:\r\n\r\n```\r\nstd::vector<std::shared_ptr<arrow::Field>> schema_vector = \r\n    {\r\n        arrow::field(\"1\", arrow::utf8()),\r\n        arrow::field(\"2\", arrow::struct_(\r\n                            {arrow::field(\"test\", arrow::utf8()),\r\n                             arrow::field(\"test_2\", arrow::utf8()}))\r\n    };\r\n```\r\n"}}
{"actor":{"display_login":"dragan224"}}