Skip to content

Commit 95325ce

Browse files
committed
Update job creating to have a valid state on non stateless result
1 parent c9d4a51 commit 95325ce

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

BigQuery/src/BigQueryClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ public function runQuery(JobConfigurationInterface $query, array $options = [])
457457
);
458458
}
459459

460+
$jobInfo['status']['state'] = null;
460461
$job = $this->createJob($jobInfo, $jobId);
461462
} else {
462463
$job = $this->startQuery($query, $options);

BigQuery/src/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function () use ($options) {
267267
*/
268268
public function isComplete(array $options = [])
269269
{
270-
return $this->info($options)['status']['state'] === 'DONE';
270+
return $this->info($options)['status']['state'] === self::DONE;
271271
}
272272

273273
/**

0 commit comments

Comments
 (0)