google-cloud-rust icon indicating copy to clipboard operation
google-cloud-rust copied to clipboard

How can I use the BigQuery Client without authentication?

Open rodmoioliveira opened this issue 1 year ago • 3 comments

Hi, @yoshidan! First of all, thanks for this crate. I've been using it for some of my projects, and it's really nice.

Here's my problem: I'd like to write some integration tests using testcontainters and bigquery-emulator. Nonetheless, I couldn't find a way to set up the BigQuery Client to connect without authentication.

For instance, the Golang lib has the option WithoutAuthentication(), and Python's lib has AnonymousCredentials().

To write my integration test, I will also need to change the BigQuery endpoint, but I believe I can do it using the ClientConfig.with_endpoint() method.

Is it possible to use BigQuery Client without authentication?

Thank you in advance.

rodmoioliveira avatar Dec 18 '24 21:12 rodmoioliveira

The bigquery emulator is not supported because there is no official google emulator. Only pubsub and spanner are currently supported.

The emulator you mentioned seems to be used frequently, so we will check its operation and consider supporting it.

yoshidan avatar Dec 18 '24 23:12 yoshidan

@yoshidan, I am grateful for your prompt response and I appreciate your attention to this matter. Is there anything I can do to assist?

rodmoioliveira avatar Dec 20 '24 15:12 rodmoioliveira

https://github.com/yoshidan/google-cloud-rust/pull/336 enable us to use bigquery emulator. I have checked that several API works. However, the Streaming Read API does not seem to work properly. We will investigate this.

Is there anything I can do to assist?

If you have time, it would be helpful to see if the Streaming API and other APIs work.

yoshidan avatar Dec 29 '24 11:12 yoshidan