-
Notifications
You must be signed in to change notification settings - Fork 46
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
fix: handle AttributeError in bigquery_storage writer #414
Conversation
3956003
to
fc2b386
Compare
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.
Looks good! Would be great if we could get a unit test or two checking this behavior (closed during _open
)
I'm only able to get attribute error when I change the client code here to the code in googleapis/python-api-core#268 (comment). I suggest proceeding without a test as I'm not able to get the code to fail without changing the client code in |
Here is an example of the failure locally when using the modified version of
|
This PR fixes an issue where an
AttributeError
could be raised here if eitherself._rpc
or theself._consumer
is null. @tswast and I saw thisAttributeError
locally with the changes from googleapis/python-api-core#357See stack trace below