-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
BigQuery: Challenged inserting data into BQ tables #4709
Comments
The
comes from job_config.skip_leading_rows = 1 @tswast Can you confirm? As for |
Note: You don't actually have to create a physical file to use a load job. You can just as easily use StringIO. See: #4553 (comment) We have #4553 open for making this easier. |
Thank you! I'll try with StringIO. |
I just retriggered the post-tag build, which failed due to |
@tseaver The push to PyPI will only happen on a tag build, the build you linked to is a regular |
@dhermes Hmmm. I don't see a tag build at all. |
That's correct
|
I've got no clue how to force CircleCI to run the build -- delete and re-push the tag? |
Or I can just push the release to PyPI manually. |
I think a manual push to PyPI is fine. |
I'm writing a script with the Python Library and need to programmatically populate tables with data. I'm reviewing the documentation but unable to get these to work:
https://googlecloudplatform.github.io/google-cloud-python/latest/bigquery/usage.html#tables
requirements.txt
:I'm running in virtualenv.
I'm able to connect a client to a project, enumerate datasets, set dataset expiration, create/enumerate/delete tables and set table expiry. I'm unable to insert data into the tables.
1. client.insert_rows
Trying the code from the docs does not work for me:
I get
From:
2. client.load_table_from_file
So, then I tried load_table_from_file and this works for the 1st table only. I've tried iterating outside of the job and inside the job but receive:
I tried:
and
The text was updated successfully, but these errors were encountered: