Local listing queries silently accept a missing lookup_from collection
Maintainers usually reply within 6 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start by tracing the sync and async local client paths that skip _resolve_query_input when query is omitted, then check how that helper validates lookup_from. The report says the fix should preserve validation when lookup_from is explicitly supplied. Verify that direct, batch, and grouped listings reject a missing lookup collection while requests with an existing lookup collection or no lookup still return listed points.
Written by the indexing model from the issue text.
Description
Local mode silently returns results when a listing request supplies lookup_from pointing to a missing collection. The same request sent to Qdrant server 1.20.0 returns a 404. An application that builds requests from cached settings can pass its local smoke test and then fail after deployment when the configured lookup collection is missing.
from qdrant_client import QdrantClient, models
client = QdrantClient(":memory:")
client.create_collection("docs", vectors_config={})
client.upsert("docs", [models.PointStruct(id=7, vector={})])
result = client.query_points(
"docs", lookup_from=models.LookupLocation(collection="missing_lookup")
)
print([point.id for point in result.points]) # [7] on dev d3d8245
I reproduced this against dev at d3d8245 and Qdrant server 1.20.0. Direct, batch, and grouped listings all diverge. Requests with an existing lookup collection and requests with no lookup still return the listed points.
The sync and async local clients skip _resolve_query_input whenever query is omitted. That path also validates the lookup collection, so skipping it hides the missing collection. A small change can keep the validation when the request explicitly supplies lookup_from.
AI assistance was used to investigate and draft this report. The local and server behavior was verified by running both clients.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 409
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qdrant/qdrant-client
-
url="qdrant:6333" raises "Unknown scheme: qdrant" when the scheme is left outPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
qdrant/qdrant-client#1712 ·
Maintainers usually reply within 6 days
-
Bug: _check_compatibility ignores verify parameter, causing SSL warnings with custom certificatesPossibly taken @industriverse claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
qdrant/qdrant-client#1693 · 1 comment ·
Maintainers usually reply within 6 days
-
Reciprocal rank fusion overwrites source scores and previous resultsPossibly taken @IlyaKhalafi claimed this 25 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
qdrant/qdrant-client#1680 ·
Maintainers usually reply within 6 days
-
IPv6 literal host: QdrantClient builds invalid REST URL and gRPC targetMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
qdrant/qdrant-client#1678 · 2 comments ·
Maintainers usually reply within 6 days
-
api_key does not replace an api-key header for gRPC requestsPossibly taken @Steve-20-ai claimed this 22 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qdrant/qdrant-client#1667 ·
Maintainers usually reply within 6 days
All issues in qdrant/qdrant-client
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Status: Triage Suggestion
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
collabnix/awesome-mcp-lists#515 ·
Maintainers usually reply within 1 day
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day