-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bigquery): set PreferredMinStreamCount when creating read session #8476
feat(bigquery): set PreferredMinStreamCount when creating read session #8476
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit, but otherwise LGTM
bigquery/storage_client.go
Outdated
@@ -135,13 +135,19 @@ type readSession struct { | |||
|
|||
// Start initiates a read session | |||
func (rs *readSession) start() error { | |||
preferredMinStreamCount := int32(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks a bit odd, why not just var preferredMinStreamCount int32
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, let me change here. I think I was playing with default values and ended up leaving like that.
PreferredMinStreamCount
must be less than or equal toMaxStreamCount
, so we only set it when theMaxStreamCount
is 0, which basically sets no limit to it.Resolves #8432