Skip to content

Commit

Permalink
fix(bigquery): include user_email field when requesting job information
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seongwon77 committed Jun 24, 2022
1 parent 3db0773 commit c8bcdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigquery/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *Client) JobFromProject(ctx context.Context, projectID, jobID, location
ctx = trace.StartSpan(ctx, "cloud.google.com/go/bigquery.JobFromProject")
defer func() { trace.EndSpan(ctx, err) }()

bqjob, err := c.getJobInternal(ctx, jobID, location, projectID, "configuration", "jobReference", "status", "statistics")
bqjob, err := c.getJobInternal(ctx, jobID, location, projectID, "user_email", "configuration", "jobReference", "status", "statistics")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c8bcdbb

Please sign in to comment.