{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/820","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/820/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/820/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/820/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/820","id":170167110,"number":820,"title":"Cannot create table in BQ","user":{"login":"pchaganti","id":6500,"avatar_url":"https://avatars.githubusercontent.com/u/6500?v=3","gravatar_id":"","url":"https://api.github.com/users/pchaganti","html_url":"https://github.com/pchaganti","followers_url":"https://api.github.com/users/pchaganti/followers","following_url":"https://api.github.com/users/pchaganti/following{/other_user}","gists_url":"https://api.github.com/users/pchaganti/gists{/gist_id}","starred_url":"https://api.github.com/users/pchaganti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchaganti/subscriptions","organizations_url":"https://api.github.com/users/pchaganti/orgs","repos_url":"https://api.github.com/users/pchaganti/repos","events_url":"https://api.github.com/users/pchaganti/events{/privacy}","received_events_url":"https://api.github.com/users/pchaganti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T13:33:23Z","updated_at":"2016-08-09T15:53:25Z","closed_at":null,"body":"```Ruby\r\n2.3.0 :012 >   dataset = bigquery.dataset 'my_dataset'\r\n\r\n => #<Gcloud::Bigquery::Dataset:0x007fa3fb878858 @connection=Gcloud::Bigquery::Connection(asdfgh-29012242424794), @gapi=#<Google::APIClient::Schema::Bigquery::V2::Dataset:0x3fd1fdc3c4a4 DATA:{\"kind\"=>\"bigquery#dataset\", \"etag\"=>\"\\\"T7tifokHjXTVbjJPVNnQ7nk/MTQ3MDc0OTAwNzcxNw\\\"\", \"id\"=>\"asdfgh-29012242424794:my_dataset\", \"selfLink\"=>\"https://www.googleapis.com/bigquery/v2/projects/asdfgh-29012242424794/datasets/my_dataset\", \"datasetReference\"=>{\"datasetId\"=>\"my_dataset\", \"projectId\"=>\"asdfgh-29012242424794\"}, \"friendlyName\"=>\"My Dataset\", \"description\"=>\"This is my Dataset\", \"access\"=>[{\"role\"=>\"OWNER\", \"specialGroup\"=>\"projectOwners\"}, {\"role\"=>\"WRITER\", \"specialGroup\"=>\"projectWriters\"}, {\"role\"=>\"READER\", \"specialGroup\"=>\"projectReaders\"}], \"creationTime\"=>\"1470749007717\", \"lastModifiedTime\"=>\"1470749007717\"}>>\r\n\r\n2.3.0 :013 > table = dataset.create_table 'my_table' do |t|\r\n2.3.0 :014 >         t.schema.string 'first_name', mode: :required\r\n2.3.0 :015?>   end\r\n\r\nNoMethodError: undefined method `string' for {\"fields\"=>[]}:Hash\r\nDid you mean?  String\r\n\tfrom (irb):14:in `block in irb_binding'\r\n\tfrom /Users/cerberus/.rvm/gems/ruby-2.3.0@thor/gems/gcloud-0.6.3/lib/gcloud/bigquery/dataset.rb:421:in `create_table'\r\n\tfrom (irb):13\r\n\tfrom /Users/cerberus/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'\r\n\r\n2.3.0 :016 >\r\n\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/comments/238598454","html_url":"https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/820#issuecomment-238598454","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/820","id":238598454,"user":{"login":"blowmage","id":730,"avatar_url":"https://avatars.githubusercontent.com/u/730?v=3","gravatar_id":"","url":"https://api.github.com/users/blowmage","html_url":"https://github.com/blowmage","followers_url":"https://api.github.com/users/blowmage/followers","following_url":"https://api.github.com/users/blowmage/following{/other_user}","gists_url":"https://api.github.com/users/blowmage/gists{/gist_id}","starred_url":"https://api.github.com/users/blowmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowmage/subscriptions","organizations_url":"https://api.github.com/users/blowmage/orgs","repos_url":"https://api.github.com/users/blowmage/repos","events_url":"https://api.github.com/users/blowmage/events{/privacy}","received_events_url":"https://api.github.com/users/blowmage/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T15:53:25Z","updated_at":"2016-08-09T15:53:25Z","body":"What version are you using? You want to make sure you are viewing the documentation for the same version you are using. The [v0.12.0 release](https://github.com/GoogleCloudPlatform/gcloud-ruby/releases/tag/v0.12.0) saw some changes to the BigQuery and Storage APIs as the project moves to 1.0, and it looks like you are using a pre-0.12.0 version."}}
{"actor":{"display_login":"blowmage"}}