Title: [Documentation Issue] table.fetch_data(max_results=100) · Issue #1980 · googleapis/google-cloud-python · GitHub
Open Graph Title: [Documentation Issue] table.fetch_data(max_results=100) · Issue #1980 · googleapis/google-cloud-python
X Title: [Documentation Issue] table.fetch_data(max_results=100) · Issue #1980 · googleapis/google-cloud-python
Description: Page Name: bigquery-usage Release: a1b8066 Please note, the following documentation appears to be incorrect. https://googlecloudplatform.github.io/gcloud-python/latest/bigquery-usage.html Get rows from a table’s data: from gcloud import ...
Open Graph Description: Page Name: bigquery-usage Release: a1b8066 Please note, the following documentation appears to be incorrect. https://googlecloudplatform.github.io/gcloud-python/latest/bigquery-usage.html Get rows ...
X Description: Page Name: bigquery-usage Release: a1b8066 Please note, the following documentation appears to be incorrect. https://googlecloudplatform.github.io/gcloud-python/latest/bigquery-usage.html Get rows ...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1980
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Documentation Issue] table.fetch_data(max_results=100)","articleBody":"Page Name: bigquery-usage\nRelease: a1b8066\n\nPlease note, the following documentation appears to be incorrect. \nhttps://googlecloudplatform.github.io/gcloud-python/latest/bigquery-usage.html\n\n_Get rows from a table’s data:_\n\n```\nfrom gcloud import bigquery\n\u003e\u003e\u003e client = bigquery.Client()\n\u003e\u003e\u003e dataset = client.dataset('dataset_name')\n\u003e\u003e\u003e table = dataset.table(name='person_ages')\n\u003e\u003e\u003e rows, next_page_token = table.fetch_data(max_results=100) # API request\n\u003e\u003e\u003e for row in rows:\n... for field, value in zip(table.schema, row):\n... do_something(field, value)\n```\n\nSpecifically the following line of code returns 3 values. It appears that **total_rows** is missing.\n\n```\nrows, next_page_token = table.fetch_data(max_results=100) # API request\n```\n\nThe documentation for _table.fetch_data_ states the following:\n\n```\nreturns: ``(row_data, total_rows, page_token)``, where ``row_data``\n is a list of tuples, one per result row, containing only\n the values; ``total_rows`` is a count of the total number\n of rows in the table; and ``page_token`` is an opaque\n```\n","author":{"url":"https://github.com/mchirico","@type":"Person","name":"mchirico"},"datePublished":"2016-07-13T11:52:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1980/google-cloud-python/issues/1980"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e681f350-4191-3444-b218-93fa57317a6f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA32:43C9:5264BC:6EC606:6A4D514C |
| html-safe-nonce | 5b7beac93bb9bd90702732b75f6e4a86f9a0e691674b22069f129c5a4009f119 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTMyOjQzQzk6NTI2NEJDOjZFQzYwNjo2QTRENTE0QyIsInZpc2l0b3JfaWQiOiI0ODE2MDk3MTkzMjk4MzE3NjQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 56932ce8ec1978e8a119a67190d81694d32c4d0d50f034ccd0284ba4f98efea4 |
| hovercard-subject-tag | issue:165302277 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/1980/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd73c0ad819e336ba7ec00bbe38588413945756829d7e38f77e0bcd9962a32f3/googleapis/google-cloud-python/issues/1980 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd73c0ad819e336ba7ec00bbe38588413945756829d7e38f77e0bcd9962a32f3/googleapis/google-cloud-python/issues/1980 |
| og:image:alt | Page Name: bigquery-usage Release: a1b8066 Please note, the following documentation appears to be incorrect. https://googlecloudplatform.github.io/gcloud-python/latest/bigquery-usage.html Get rows ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mchirico |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width