Skip to content

Commit da42b4e

Browse files
fix(bigquery): include user_email field when requesting job information (#6256)
The field itself was added in the commit 7b18bf6, but it was not added in the field allowlist. Due to this missing, the function has returned an empty string which is wrong. Co-authored-by: shollyman <[email protected]>
1 parent c6d3ba4 commit da42b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigquery/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (c *Client) JobFromProject(ctx context.Context, projectID, jobID, location
6363
ctx = trace.StartSpan(ctx, "cloud.google.com/go/bigquery.JobFromProject")
6464
defer func() { trace.EndSpan(ctx, err) }()
6565

66-
bqjob, err := c.getJobInternal(ctx, jobID, location, projectID, "configuration", "jobReference", "status", "statistics")
66+
bqjob, err := c.getJobInternal(ctx, jobID, location, projectID, "user_email", "configuration", "jobReference", "status", "statistics")
6767
if err != nil {
6868
return nil, err
6969
}

0 commit comments

Comments
 (0)