Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d3bccc1

Browse filesBrowse files
ryanmatsJon Wayne Parrott
authored andcommitted
Changed error handling for all other big query samples as well (GoogleCloudPlatform#694)
1 parent ff54b24 commit d3bccc1
Copy full SHA for d3bccc1

File tree

Expand file treeCollapse file tree

4 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+4
-4
lines changed

‎bigquery/cloud-client/async_query.py

Copy file name to clipboardExpand all lines: bigquery/cloud-client/async_query.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def wait_for_job(job):
3535
job.reload() # Refreshes the state via a GET request.
3636
if job.state == 'DONE':
3737
if job.error_result:
38-
raise RuntimeError(job.error_result)
38+
raise RuntimeError(job.errors)
3939
return
4040
time.sleep(1)
4141

‎bigquery/cloud-client/export_data_to_gcs.py

Copy file name to clipboardExpand all lines: bigquery/cloud-client/export_data_to_gcs.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def wait_for_job(job):
5454
job.reload()
5555
if job.state == 'DONE':
5656
if job.error_result:
57-
raise RuntimeError(job.error_result)
57+
raise RuntimeError(job.errors)
5858
return
5959
time.sleep(1)
6060

‎bigquery/cloud-client/load_data_from_file.py

Copy file name to clipboardExpand all lines: bigquery/cloud-client/load_data_from_file.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def wait_for_job(job):
5656
job.reload()
5757
if job.state == 'DONE':
5858
if job.error_result:
59-
raise RuntimeError(job.error_result)
59+
raise RuntimeError(job.errors)
6060
return
6161
time.sleep(1)
6262

‎bigquery/cloud-client/snippets.py

Copy file name to clipboardExpand all lines: bigquery/cloud-client/snippets.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def wait_for_job(job):
180180
job.reload() # Refreshes the state via a GET request.
181181
if job.state == 'DONE':
182182
if job.error_result:
183-
raise RuntimeError(job.error_result)
183+
raise RuntimeError(job.errors)
184184
return
185185
time.sleep(1)
186186

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.