You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although everything is ok for the REST Api and we can test everything related to it using this setup, setting up a JsonStreamWriter that connects to the emulator via grpc it's pretty hard to achieve. (Same question was asked in this StackOverflow post)
I couldn't find anything related to this in the official documentation or in the Javadocs. What we need is to understand how to configure the Java client to point to the container started locally.
I have tried a few different configurations like this:
etrandafir93
changed the title
Improve documentation: It's unclear how to conenct to an emulator
Improve documentation: It's unclear how to conenct to a local emulator
Feb 16, 2024
Hi @etrandafir93 , testcontainers is not part of googleapis libraries. As such, providing an example on how to integrate with it would be difficult for us as we do not know their product. I would suggest asking the owners of Testcontainers directly as they will have more experience with integrating the two.
I have not tried this myself but another option would be to look into setEndpoint() in BigQueryWriteSettings when creating BigQueryWriteClient for the JsonStreamWriter.
To summarize, I'm asking if the documentation/javadocs for this project (the java-bigquey client library) can be improved a bit so that it's clear how to configure it to point to a different grpc endpoint. Since the library supports this feature, it'd be helpful to have a clearer example/docs to guide users in using it.
I did mention testcontainers here just to offer a bit of context about what I'm trying to achieve, but it's not highly relevant. My main aim is to use the java lib to connect to a different grpc endpoint.
I have tried multiple configurations, including BigQueryWriteSettings::setEndpoint, as illustrated in the StackOverflow question, but none of them worked.
We are testing the interaction with BigQuery using Testcontainers and their glcoud module.
Internally, this will use the BigQuery emulator from goccy.
Although everything is ok for the REST Api and we can test everything related to it using this setup, setting up a JsonStreamWriter that connects to the emulator via grpc it's pretty hard to achieve. (Same question was asked in this StackOverflow post)
I couldn't find anything related to this in the official documentation or in the Javadocs. What we need is to understand how to configure the Java client to point to the container started locally.
I have tried a few different configurations like this:
Would it be possible to update the docs or the GitHub repo and provide an example of how can this be achieved?
The text was updated successfully, but these errors were encountered: