Skip to content

Add examples for browsing / copying / exporting table data.#1016

Merged
tseaver merged 4 commits intogoogleapis:masterfrom
tseaver:bigquery-devx-jobs-export_copy
Jul 28, 2015
Merged

Add examples for browsing / copying / exporting table data.#1016
tseaver merged 4 commits intogoogleapis:masterfrom
tseaver:bigquery-devx-jobs-export_copy

Conversation

@tseaver
Copy link
Copy Markdown
Contributor

@tseaver tseaver commented Jul 23, 2015

Uses #1014 as a base.

@tseaver tseaver added the api: bigquery Issues related to the BigQuery API. label Jul 23, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 23, 2015
@tseaver tseaver changed the title Add examples for copying / exporting table data. Add examples for browsing / copying / exporting table data. Jul 23, 2015
@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented Jul 23, 2015

Will address once base is merged

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jul 24, 2015

@dhermes rebased after merge of #1014.

Comment thread docs/bigquery-usage.rst

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jul 28, 2015

@dhermes PTAL.

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented Jul 28, 2015

I have a comment still un-addressed

OK. Will there be a way to access headers without the csv property?

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jul 28, 2015

The https://cloud.google.com/bigquery/docs/reference/v2/tabledata/list API doesn't show any schema in the result set, which implies that the fields must correspond to the table's schema. I had imagined that rows, when iterated, would return tuples of the values (one per row).

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented Jul 28, 2015

So how does that relate to my question. Do you plan on implementing access in another form?

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jul 28, 2015

If we can predict what people want to do, we can add helpers. Otherwise, we can document a pattern like:

for row in rows:
     for field, value in zip(table.schema, row):
          do_somthing(field, value)

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented Jul 28, 2015

Can you add that snippet to these docs? (With a spelling patch to do_somthing)

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented Jul 28, 2015

2624822

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented Jul 28, 2015

LGTM

tseaver added a commit that referenced this pull request Jul 28, 2015
Add examples for browsing / copying / exporting table data.
@tseaver tseaver merged commit 25545c8 into googleapis:master Jul 28, 2015
@tseaver tseaver deleted the bigquery-devx-jobs-export_copy branch July 28, 2015 18:59
parthea pushed a commit that referenced this pull request Nov 22, 2025
Source-Link: googleapis/synthtool@373d00f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2dc6f67639bee669c33c6277a624ab9857d363e2fd33ac5b02d417b7d25f1ffc

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
* feat: Add REST Interceptors which support reading metadata
feat: Add support for reading selective GAPIC generation methods from service YAML
chore: Update gapic-generator-python to v1.22.0

PiperOrigin-RevId: 724026024

Source-Link: googleapis/googleapis@ad99638

Source-Link: googleapis/googleapis-gen@e291c4d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTI5MWM0ZGQxZDY3MGVkYTE5OTk4ZGU3NmY5NjdlMTYwM2E0ODk5MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: expose the Firestore.executePipeline API to the preview branch
docs: minor documentation updates to `StructuredQuery`
docs: minor documentation changes for `distance_threshold`

PiperOrigin-RevId: 731306872

Source-Link: googleapis/googleapis@b6d5ae8

Source-Link: googleapis/googleapis-gen@4cb9048
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNiOTA0ODg3MWJmNTkwNmIzOTBlOGVhM2Q3YjlmMWVmNmFjMTlkNiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Sanche <sanche@google.com>
parthea pushed a commit that referenced this pull request Mar 2, 2026
Source-Link: googleapis/synthtool@373d00f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2dc6f67639bee669c33c6277a624ab9857d363e2fd33ac5b02d417b7d25f1ffc

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 2, 2026
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Prad Nelluru <pradn@google.com>
parthea pushed a commit that referenced this pull request Mar 6, 2026
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

🦕
parthea pushed a commit that referenced this pull request Mar 9, 2026
parthea added a commit that referenced this pull request Mar 9, 2026
Source-Link: googleapis/synthtool@dede53f
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:fac304457974bb530cc5396abd4ab25d26a469cd3bc97cbfb18c8d4324c584eb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants