{"action":"closed","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/4373","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/4373/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/4373/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/4373/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4373","id":272663943,"number":4373,"title":"BigQuery Python Client v0.28.0: num_rows, schema property of a Table returning None and empty list","user":{"login":"pramodvspk","id":7676171,"avatar_url":"https://avatars1.githubusercontent.com/u/7676171?v=4","gravatar_id":"","url":"https://api.github.com/users/pramodvspk","html_url":"https://github.com/pramodvspk","followers_url":"https://api.github.com/users/pramodvspk/followers","following_url":"https://api.github.com/users/pramodvspk/following{/other_user}","gists_url":"https://api.github.com/users/pramodvspk/gists{/gist_id}","starred_url":"https://api.github.com/users/pramodvspk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pramodvspk/subscriptions","organizations_url":"https://api.github.com/users/pramodvspk/orgs","repos_url":"https://api.github.com/users/pramodvspk/repos","events_url":"https://api.github.com/users/pramodvspk/events{/privacy}","received_events_url":"https://api.github.com/users/pramodvspk/received_events","type":"User","site_admin":false},"labels":[{"id":82126549,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/api:%20bigquery","name":"api: bigquery","color":"f8f8f8","default":false},{"id":544604244,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/priority:%20p1","name":"priority: p1","color":"ffa03e","default":false},{"id":77438580,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/type:%20bug","name":"type: bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"tswast","id":247555,"avatar_url":"https://avatars3.githubusercontent.com/u/247555?v=4","gravatar_id":"","url":"https://api.github.com/users/tswast","html_url":"https://github.com/tswast","followers_url":"https://api.github.com/users/tswast/followers","following_url":"https://api.github.com/users/tswast/following{/other_user}","gists_url":"https://api.github.com/users/tswast/gists{/gist_id}","starred_url":"https://api.github.com/users/tswast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswast/subscriptions","organizations_url":"https://api.github.com/users/tswast/orgs","repos_url":"https://api.github.com/users/tswast/repos","events_url":"https://api.github.com/users/tswast/events{/privacy}","received_events_url":"https://api.github.com/users/tswast/received_events","type":"User","site_admin":false},"assignees":[{"login":"tswast","id":247555,"avatar_url":"https://avatars3.githubusercontent.com/u/247555?v=4","gravatar_id":"","url":"https://api.github.com/users/tswast","html_url":"https://github.com/tswast","followers_url":"https://api.github.com/users/tswast/followers","following_url":"https://api.github.com/users/tswast/following{/other_user}","gists_url":"https://api.github.com/users/tswast/gists{/gist_id}","starred_url":"https://api.github.com/users/tswast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tswast/subscriptions","organizations_url":"https://api.github.com/users/tswast/orgs","repos_url":"https://api.github.com/users/tswast/repos","events_url":"https://api.github.com/users/tswast/events{/privacy}","received_events_url":"https://api.github.com/users/tswast/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-11-09T18:05:15Z","updated_at":"2017-12-06T00:08:53Z","closed_at":"2017-12-06T00:08:53Z","author_association":"NONE","body":"Hi,\r\n\r\nI am using the BigQuery Python client v0.28.0\r\n\r\nUsing the bigquery client to list all tables in a dataset using method `list_dataset_tables`, I get an iterator of table references in the dataset. When I try to access the `num_rows` and `schema` properties of the Table object it returns `None` and `[]`.\r\n\r\nBut when I access the table using `client.get_table()` I am able to access both the num_rows and schema properties.\r\n\r\nI am confused since both the methods return a `google.cloud.bigquery.table.Table` object but are inconsistent.\r\n\r\n```\r\nfor table in bqclient.list_dataset_tables(dataset_ref):\r\n\tprint(table.num_rows)\r\n\tprint(table.schema)\r\n```\r\nReturns None and []\r\n```\r\ntable = bqclient.get_table(table)\r\n\tprint(table.num_rows)\r\n\tprint(table.schema)\r\n```\r\nReturns the number of rows and list of schemaFields\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"tswast"}}