Commit ef54121
committed
use jobReference.jobId instead, to not include the "project-id:" prefix for Job constructor
current code use the job.id from metadata in jobs.list api response to construct a Job; however
it has the full format of "project-id:jobid-........." the constructed Job from this full id
format can't be used for further acesss, like job.get job.getQueryResults
server side will return an "Invalid job ID" error; see this fixes #2736
the metadata response has jobReference.jobId is exactly needed here;
{ kind: 'bigquery#job',
etag: '"cX5UmbB_R-S07ii743IKGH9YCYM/4xT3EKx31LcQTmnaqUafpQ2RHqU"',
id: 'project-id:job_D3tTAICe8jSlPuOw8CSvLEKs7-0C',
selfLink: 'https://www.googleapis.com/bigquery/v2/projects/<project-id>/jobs/job_D3tTAICe8jSlPuOw8CSvLEKs7-0C',
jobReference:
{ projectId: '<project-id>',
jobId: 'job_D3tTAICe8jSlPuOw8CSvLEKs7-0C' },1 parent eccb085 commit ef54121
2 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
| 809 | + | |
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
| 1052 | + | |
1052 | 1053 | | |
1053 | 1054 | | |
1054 | 1055 | | |
| |||
1059 | 1060 | | |
1060 | 1061 | | |
1061 | 1062 | | |
1062 | | - | |
| 1063 | + | |
| 1064 | + | |
1063 | 1065 | | |
1064 | 1066 | | |
1065 | 1067 | | |
| |||
1073 | 1075 | | |
1074 | 1076 | | |
1075 | 1077 | | |
1076 | | - | |
| 1078 | + | |
| 1079 | + | |
1077 | 1080 | | |
1078 | 1081 | | |
1079 | 1082 | | |
| |||
0 commit comments