Skip to content

BiqQuery API methods return null #2486

@asuresh4

Description

@asuresh4

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

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions