You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] The 'queries' parameter has been deprecated in VectorServiceBlockingStub #21
This line:
QueryResponse queryResponse = conn.getBlockingStub().query(batchQueryRequest);
causes an exception, see below.
Expected Behavior
The Java client shouldn't use deprecated field.
Steps To Reproduce
I guess your example should also fail.
Maybe need to create a new starter Pinecone project first, which is what I did.
Relevant log output
exception [Request processing failed: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: The 'queries' parameter has been deprecated.] with root cause
io.grpc.StatusRuntimeException: INVALID_ARGUMENT: The 'queries' parameter has been deprecated.
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271) ~[grpc-stub-1.53.0.jar:1.53.0]
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252) ~[grpc-stub-1.53.0.jar:1.53.0]
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:165) ~[grpc-stub-1.53.0.jar:1.53.0]
at io.pinecone.proto.VectorServiceGrpc$VectorServiceBlockingStub.query(VectorServiceGrpc.java:541) ~[pinecone-client-0.2.3.jar:0.2.3]
Environment
-**OS**:
Windows 11
-**Language**
Java
-**Pinecone client version**:
0.2.3
Hi @AriJordan,
Thanks for opening this issue. Let me do some research and get back to you. Also I'm able to successfully run a batch query call as described in the example. I'm curious to know what version of java are you using and how does the setup look like for your batch query call.
Rohan
I created a new Pinecone project on a different server and now it's fine. So it only seems to happen for some Pinecone projects/servers. Seems to have nothing to do with the Java version.
Activity
rohanshah18 commentedon Sep 14, 2023
Hi @AriJordan,
Thanks for opening this issue. Let me do some research and get back to you. Also I'm able to successfully run a batch query call as described in the example. I'm curious to know what version of java are you using and how does the setup look like for your batch query call.
Rohan
AriJordan commentedon Sep 14, 2023
I created a new Pinecone project on a different server and now it's fine. So it only seems to happen for some Pinecone projects/servers. Seems to have nothing to do with the Java version.
rohanshah18 commentedon Sep 15, 2023
I'm glad you were able to run the project. I'll close this but feel free to open a new issue if you face similar problems in future.
rohanshah18 commentedon Dec 13, 2023
@AriJordan Just to confirm,
addQueries()andaddAllQueries()are deprecated, please useaddVector()oraddAllVector()instead.rohanshah18 commentedon Dec 13, 2023
@AriJordan For your reference, please find below the examples:
AriJordan commentedon Dec 13, 2023
Thanks for the help
test: poll instead of the last fixed sleeps; quota-independent Config…
fix(deps): bump jackson, netty, and guava to resolve security advisor…