Local listing queries silently accept a missing lookup_from collection

Open Beginner friendly
#1,729 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

@SandeshKumar1 is already working on this.

Since Dec 1, 2026.

  • #1730 by @raunakpandey1 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
database

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qdrant/qdrant-client

All issues in qdrant/qdrant-client

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.