-
Notifications
You must be signed in to change notification settings - Fork 322
feat: add created/started/ended properties to RowIterator. #2260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
7be87da
9a85bf3
c5db8c4
4de4607
7200dad
33e4336
ec83583
6cc0e0f
74ab765
07eaab3
156d56f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -889,6 +889,9 @@ def test_result_reloads_job_state_until_done(self): | |
| job_resource_done = self._make_resource(started=True, ended=True, location="EU") | ||
| job_resource_done["statistics"]["query"]["totalBytesProcessed"] = str(1234) | ||
| job_resource_done["statistics"]["query"]["totalSlotMs"] = str(5678) | ||
| job_resource_done["statistics"]["query"]["creationTime"] = str(1437767599006) | ||
| job_resource_done["statistics"]["query"]["startTime"] = str(1437767600007) | ||
| job_resource_done["statistics"]["query"]["endTime"] = str(1437767601008) | ||
|
||
| job_resource_done["configuration"]["query"]["destinationTable"] = { | ||
| "projectId": "dest-project", | ||
| "datasetId": "dest_dataset", | ||
|
|
@@ -971,6 +974,9 @@ def test_result_reloads_job_state_until_done(self): | |
| self.assertEqual(result.query, job.query) | ||
| self.assertEqual(result.total_bytes_processed, 1234) | ||
| self.assertEqual(result.slot_millis, 5678) | ||
| self.assertEqual(result.created.timestamp() * 1000, 1437767599006) | ||
| self.assertEqual(result.started.timestamp() * 1000, 1437767600007) | ||
| self.assertEqual(result.ended.timestamp() * 1000, 1437767601008) | ||
|
||
|
|
||
| query_results_path = f"/projects/{self.PROJECT}/queries/{self.JOB_ID}" | ||
| query_results_call = mock.call( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.