Skip to content

_try_credentials requires read permissions #202

Closed
@telenieko

Description

@telenieko

Hi,

I am trying out pandas-gbq as part of a data loading process (we load lots of stuff into DataFrame's for cleanup and processing, and the final result is loaded into BigQuery).

On that use case, the account used needs only write access to BigQuery but _try_credentials issues a SELECT which makes it fail.

Moreover, this is run on GCP so google.auth.default() succeeds but as the SELECT fails, the library tries interactive authentication which fails.

Either _try_credentials should not require read permissions (unless on a read operation) or the method should be optional.

Related to #198

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions