diff --git a/src/table.ts b/src/table.ts index 4dfe0792..6897bebb 100644 --- a/src/table.ts +++ b/src/table.ts @@ -1554,6 +1554,7 @@ class Table extends ServiceObject { (data: any) => { const job = this.bigQuery.job(data.jobReference.jobId, { location: data.jobReference.location, + projectId: data.jobReference.projectId, }); job.metadata = data; dup.emit('job', job); diff --git a/test/table.ts b/test/table.ts index 11322410..84d71ce5 100644 --- a/test/table.ts +++ b/test/table.ts @@ -1783,6 +1783,7 @@ describe('BigQuery/Table', () => { jobReference: { jobId: 'job-id', location: 'location', + projectId: 'project-id', }, a: 'b', c: 'd', @@ -1792,6 +1793,7 @@ describe('BigQuery/Table', () => { assert.strictEqual(id, metadata.jobReference!.jobId); assert.deepStrictEqual(options, { location: metadata.jobReference!.location, + projectId: metadata.jobReference!.projectId, }); return fakeJob; };