-
Notifications
You must be signed in to change notification settings - Fork 1.1k
BiqQuery API methods return null #2486
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
The following methods of the API ALWAYS return null value. Please have a look. Thanks!
DatasetInfo.getLocation()
DatasetInfo.getCreationTime()
DatasetInfo.getDefaultTableLifetime()
DatasetInfo.getDescription()
DatasetInfo.getLastModified()
This is also related to an initial issue I created: #2482
I created a sample dataset through the UI and added a table to it. I'm able query this relevant information using the gcloud API. On using the Java Library to query information about the dataset using the above methods, I get a null value. However dataset.getDatasetId().getDataset() gives the name of the expected dataset.
Code:
BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
Page<Dataset> datasets = bigquery.listDatasets();
for (Dataset dataset : datasets.iterateAll()) {
Map<String, String> props = new HashMap<>();
String datasetId = dataset.getDatasetId().getDataset();
dataset.getCreationTime() // This gives null
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.