Skip to content

Exception while describing dataset through SDK when allUsers access has been set #176

@shollyman

Description

@shollyman

Initially reported:
https://issuetracker.google.com/issues/149630959

copied report from the issuetracker:

Through the console, we have created datasets and provided the access to it as "allUsers".

We are currently using the google-cloud-bigquery version 1.102.0. And facing an exception when we try to call the describe method (i.e: client.getDataset(datasetId)).

This is the exception which is being thrown:
Method threw 'com.google.cloud.bigquery.BigQueryException' exception. Cannot evaluate com.google.cloud.bigquery.Dataset.toString()

I believe this is because the class Group, which extends Acl.Entity, has only the following values defined:

private static final String PROJECT_OWNERS = "projectOwners";
private static final String PROJECT_READERS = "projectReaders";
private static final String PROJECT_WRITERS = "projectWriters";
private static final String ALL_AUTHENTICATED_USERS = "allAuthenticatedUsers";

We are not facing a problem when the ACL has been set to any of the other 4 values present above, only when allUsers has been selected

Any idea if this is a known bug, and if so in which version can we expect a fix for it?

Commentary from shollyman

We should verify how the java library is handling parsing of the access field in the dataset resource. This may be another instance of the same issue we saw in go:

googleapis/google-cloud-go#1658
https://code-review.googlesource.com/c/gocloud/+/48291

Metadata

Metadata

Labels

api: bigqueryIssues related to the googleapis/java-bigquery API.priority: p2Moderately-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions