KEMBAR78
feat: Improve client settings by yirutang · Pull Request #2097 · googleapis/java-bigquerystorage · GitHub
Skip to content

Conversation

yirutang
Copy link
Contributor

@yirutang yirutang commented May 1, 2023

  1. Add ExecutorProvider to sample
  2. Add KeepAlive setting to default set up.

@yirutang yirutang requested a review from a team as a code owner May 1, 2023 22:29
@yirutang yirutang requested a review from jainsahab May 1, 2023 22:29
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels May 1, 2023
@yirutang yirutang requested a review from GaoleMeng May 1, 2023 22:35
@yirutang yirutang changed the title Improve client settings feat: Improve client settings May 1, 2023
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label May 1, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 1, 2023
// https://googleapis.dev/java/google-cloud-bigquerystorage/latest/com/google/cloud/bigquery/storage/v1/JsonStreamWriter.html
streamWriter =
JsonStreamWriter.newBuilder(parentTable.toString(), BigQueryWriteClient.create()).build();
JsonStreamWriter.newBuilder(parentTable.toString(), BigQueryWriteClient.create())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

our example code create the client by "BigQueryWriteClient.create()" does that means we are not passing any keepalive setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added as a default setting. If I use a new transport in the sample, then the default setting will be overwritten.

I think in most cases, users doesn't need to reset the transport settings, our default is covering all that's needed (being set by Dataflow).

@Neenu1995 Neenu1995 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 3, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 3, 2023
@gcf-owl-bot gcf-owl-bot bot requested a review from a team as a code owner May 3, 2023 13:53
@yirutang yirutang merged commit 4fc2fac into googleapis:main May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants