Is this a new bug?
Current Behavior
If I call set_metadata index update by id with flag dry_run=True, The index is updated and the response is UpdateResponse(matched_records=None, response_info=None), the result doesn't look obvious.
Expected Behavior
If I call set_metadata index update by id:
- if flag
dry_run=True is set, I expect operation to return number of recrods to be updated in UpdateResponse object, but no operations really executed.
- if flag
dry_run=False or None is set, I expect data to be updated, and update information returned in UpdateResponse object
Steps To Reproduce
pinecone = Pinecone(... some credentials ...)
index = pinecone.index(name="my_index", grpc=True)
response = index.update(id="some_id", set_metadata={"update": True}, dry_run=True)
print(response)
# Prints UpdateResponse(matched_records=None, response_info=None)
Relevant log output
Environment
OS Version: python:3.11.10-slim based docker container
Python SDK version: 9.0.0
Language version: 3.11.10
Additional Context
No response
Is this a new bug?
Current Behavior
If I call
set_metadataindex update by id with flagdry_run=True, The index is updated and the response isUpdateResponse(matched_records=None, response_info=None), the result doesn't look obvious.Expected Behavior
If I call set_metadata index update by id:
dry_run=Trueis set, I expect operation to return number of recrods to be updated in UpdateResponse object, but no operations really executed.dry_run=Falseor None is set, I expect data to be updated, and update information returned in UpdateResponse objectSteps To Reproduce
Relevant log output
Environment
Additional Context
No response