10BC0 docs(bigquery): document how to load data as JSON string by plamut · Pull Request #9231 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

Conversation

plamut
Copy link
Contributor
@plamut plamut commented Sep 14, 2019

Closes #9203.

This PR documents how to load table data from a JSON string. This will make it less likely for the users to try loading JSON string data with the load_table_from_json() method (the latter expects an iterable of dicts.

We opted not to add a yet another load method load_table_from_string, as that will more or less just repeat the logic from load_table_from_file(), and because wrapping string data into a file-like object is straightforward.

@plamut plamut added api: bigquery Issues related to the BigQuery API. type: docs Improvement to the documentation for an API. labels Sep 14, 2019
@plamut plamut requested a review from a team September 14, 2019 14:13
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 14, 2019
@plamut plamut changed the title BigQuery: Document how to load data as JSON string docs(bigquery): document how to load data as JSON string Sep 24, 2019
@tswast tswast merged commit f6e185f into googleapis:master Sep 26, 2019
@plamut plamut deleted the iss-9203 branch September 27, 2019 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement. type: docs Improvement to the documentation for an API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery: "Failed to parse JSON: No active field found" when using load_table_from_json()
3 participants
0