|
50 | 50 | import com.google.gcloud.bigquery.InsertAllResponse; |
51 | 51 | import com.google.gcloud.bigquery.Job; |
52 | 52 | import com.google.gcloud.bigquery.JobInfo; |
| 53 | +import com.google.gcloud.bigquery.JobStatistics; |
53 | 54 | import com.google.gcloud.bigquery.LoadJobConfiguration; |
54 | 55 | import com.google.gcloud.bigquery.QueryJobConfiguration; |
55 | 56 | import com.google.gcloud.bigquery.QueryRequest; |
@@ -683,10 +684,9 @@ public void testQuery() throws InterruptedException { |
683 | 684 | rowCount++; |
684 | 685 | } |
685 | 686 | assertEquals(2, rowCount); |
686 | | - // todo(mziccard) uncomment as soon as #624 is closed |
687 | | - // Job queryJob = bigquery.getJob(response.jobId()); |
688 | | - // JobStatistics.QueryStatistics statistics = queryJob.statistics(); |
689 | | - // assertNotNull(statistics.queryPlan()); |
| 687 | + Job queryJob = bigquery.getJob(response.jobId()); |
| 688 | + JobStatistics.QueryStatistics statistics = queryJob.statistics(); |
| 689 | + assertNotNull(statistics.queryPlan()); |
690 | 690 | } |
691 | 691 |
|
692 | 692 | @Test |
@@ -851,10 +851,9 @@ public void testQueryJob() throws InterruptedException { |
851 | 851 | } |
852 | 852 | assertEquals(2, rowCount); |
853 | 853 | assertTrue(bigquery.delete(DATASET, tableName)); |
854 | | - // todo(mziccard) uncomment as soon as #624 is closed |
855 | | - // Job queryJob = bigquery.getJob(remoteJob.jobId()); |
856 | | - // JobStatistics.QueryStatistics statistics = queryJob.statistics(); |
857 | | - // assertNotNull(statistics.queryPlan()); |
| 854 | + Job queryJob = bigquery.getJob(remoteJob.jobId()); |
| 855 | + JobStatistics.QueryStatistics statistics = queryJob.statistics(); |
| 856 | + assertNotNull(statistics.queryPlan()); |
858 | 857 | } |
859 | 858 |
|
860 | 859 | @Test |
|
0 commit comments