-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
api: bigqueryIssues related to the googleapis/java-bigquery API.Issues related to the googleapis/java-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Below method is retuning null:
public Long getCreationTime() {
return this.creationTime;
}
Tested in below snippet:
Page<Dataset> datasets = bigquery.listDatasets(PROJECT_ID, DatasetListOption.pageSize(1000));
for (Dataset dataset : datasets.getValues()) {
String datasetName = dataset.getDatasetId().getDataset();
if ((datasetName.contains("CREATE_DATASET_AWS_TEST_")
|| datasetName.contains("MY_DATASET_")
|| datasetName.contains("gcloud_test_")
|| datasetName.contains("SHARED_DATASET_TEST_"))
&& dataset.getCreationTime() > sixHourAgo) {
System.out.format("\tDeleting Dataset: %s\n", datasetName);
bigquery.delete(
DatasetId.of(PROJECT_ID, datasetName), BigQuery.DatasetDeleteOption.deleteContents());
}
}
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/java-bigquery API.Issues related to the googleapis/java-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.