Skip to content

Improve error message when credentials lack BigQuery read API permissions #3281

@serramatutu

Description

@serramatutu

What feature or improvement would you like to see?

The ADBC driver uses the Read API to make requests to BigQuery. That requires roles/bigquery.readSessionUser.

If the user lacks the permission, BigQuery errors with require storage read API to be enabled, which is imprecise, since (1) it is enabled for all projects where the Storage API is enabled and (2) it's actually a permissions error, not that the API is disabled.

I suggest we catch this 403 and return a better error like "Your credentials lack permissions for the Read API. Assign roles/bigquery.readSessionUser and try again."

If it is decided to implement what's suggested here, then this error message might change to something like "... or use the Jobs API instead".

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions