-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync BigQuery usage docs with current API #1263
Sync BigQuery usage docs with current API #1263
Conversation
- 'data' method is not 'fetch_data'. - Row data returned has no 'csv' attribute: it is simply a list of tuples.
@@ -232,11 +232,7 @@ Get rows from a table's data: | |||
>>> client = bigquery.Client() | |||
>>> dataset = client.dataset('dataset_name') | |||
>>> table = dataset.table(name='person_ages') | |||
>>> rows, next_page_token = table.data(max_results=100) # API request | |||
>>> rows.csv.headers |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
>>> job = client.load_table_from_storage( | ||
... 'load-from-storage-job', table, 'gs://bucket-name/object-prefix*') | ||
>>> job.source_format = 'CSV' | ||
>>> job.skip_leading_rows = 1 # count of skipped header rows |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@dhermes any remaining issues? |
LGTM. Sorry for the holdup. |
Sync BigQuery usage docs with current API
Note: the
client.jobs()
example is science fiction, to be addressed in #1260.Fixes #1259.