-
Notifications
You must be signed in to change notification settings - Fork 78
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 empty last chunk correctly in 'Query._chunkify' #489
fix: handle empty last chunk correctly in 'Query._chunkify' #489
Conversation
Reproduces issue #487.
In the #488 I also had a fix for the None case of the bulk_writter being not correctly initialized. |
@noxxious Your change (calling |
Sure, passing options would have changed the client API interface. With the current API of bulk_writer being optional and current coded behavior of constructing bulk_writer, using a default constructor results in non-functional BulkWriter not bound to a client, hence all the recursive delete actions are not performed. My additional tests for the None BulkWriter just show that. So this means, either the method API needs to change to indicate that the bulk_writer is not optional or the options need to be added. |
The object is unusable without a client defined.
…lete' Use 'self.bulk_writer()' to construct the default writer, and do so in the public method: 'bulk_writer' is now a required argument for the private helper.
@noxxious Thanks for the follow-up! It is indeed a problem that we have code constructing a2e5469 refactors the bits which construct the bulk writer if none is passed to the public |
Glad to help. |
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.
LGTM!
Closes #487.
Supersedes #488.