elasticsearch-py icon indicating copy to clipboard operation
elasticsearch-py copied to clipboard

helpers.async_bulk to return explicit tuple.

Open bshakur8 opened this issue 2 years ago • 2 comments

in Python3.11, when stats_only is False, it returns a tuple of (success, errors) instead of only list of errors. The fix makes sure that it returns a tuple when stats_only is True and list otherwise.

Legacy:

elasticsearch/_async/helpers.py:348
return success, failed if stats_only else errors

will return, <success>, errors in case stats_only is False./

bshakur8 avatar Apr 30 '23 11:04 bshakur8

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

elasticmachine avatar Apr 30 '23 11:04 elasticmachine

❌ Author of the following commits did not sign a Contributor Agreement: 61a9bd1c201f26adaa01500e86f68648eb6b945c

Please, read and sign the above mentioned agreement if you want to contribute to this project