Comments (5)
This sounds like a similar issue. There should be an errors
property on the job.
from bigquery-python.
I'm not seeing errors or insertErrors on my job.
I have another piece of code which does have errors on occasion:
job = bqClient.client.push_rows(
to_bq_jobs[path]['dataset'],
to_bq_jobs[path]['table'],
rowsToAdd[rowCount:topCount],
#insert_id_key=to_bq_jobs[path]['id_to_match']
)
#print(str(job))
if 'insertErrors' in job:
And that lets me print out the errors. However on this job, there isn't an error or insertError key in the job dict.
The status dict has 'state': "running", there isn't any error listed.
I tried changing to job_id, _results = bqClient.client.wait_for_job(job)
, which still throws the same error and _results doesn't have anything.
from bigquery-python.
Can you dump the contents of the dict that gets returned?
from bigquery-python.
I've been testing with JSON newlimited import which also fails, but it also throws a similar error.
Reason:invalid. Message:Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the error stream for more details.
{
"configuration": {
"jobType": "LOAD",
"load": {
"destinationTable": {
"datasetId": "redacted",
"projectId": "redacted",
"tableId": "stages_copy"
},
"schema": {
"fields": [
{
"mode": "NULLABLE",
"name": "Stage_id",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "Stage_Order",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "Stage_Name",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "Stage_Pipeline_id",
"type": "INTEGER"
}
]
},
"sourceFormat": "NEWLINE_DELIMITED_JSON",
"sourceUris": [
"gs://redacted/stages.json"
]
}
},
"etag": "\"redacted/29pKp--d60WMuqds86QyFCCo47Q\"",
"id": "redacted",
"jobReference": {
"jobId": "redacted",
"location": "US",
"projectId": "redacted"
},
"kind": "bigquery#job",
"selfLink": "https://www.googleapis.com/bigquery/v2/projects/redacted?location=US",
"statistics": {
"creationTime": "1539023656058",
"startTime": "1539023656543"
},
"status": {
"state": "RUNNING"
},
"user_email": "redacted"
}
`
from bigquery-python.
Our workaround is to surround all our job.result() calls with a try/except that prints out job.errors, but it would be really nice if the errors were just printed out so that we didn't have to do that!
from bigquery-python.
Related Issues (20)
- ImportError: cannot import name get_client HOT 6
- Queries results limited HOT 1
- get statistics of the job HOT 1
- specifying dataset location when using create_dataset method HOT 2
- create_table() documentation incorrect HOT 1
- Table expiration time should be a long HOT 1
- Functionality to upload/download file from local to gcs and vice versa
- not working anymore due to KeyError: 'google'
- Get Client with API key
- documentation typo "destination_urls" HOT 1
- bigquery.errors.JobInsertException: Reason:invalid. Message:Table wasel-95b26:com_mysada_news_ANDROID.app_events_20170611 cannot be exported as CSV because it has a nested schema. HOT 1
- get_query_rows offset option fails across pages
- Few typos in documentation HOT 1
- Cannot import get_client
- ImportError: No module named bigquery
- Not getting the full list of datasets when there are more than 50 datasets in the project HOT 1
- Standard SQL support HOT 3
- Request had insufficient authentication scopes when creating a table HOT 6
- Is this project still ongoing?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigquery-python.