SearchVectors does not refuse an unused ExpressionAttributeNames entry

Open Beginner friendly
#1,320 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, rust
Domain
api, database

Research direction

The bug is in the SearchVectors request path, which accepts an ExpressionAttributeNames entry that no expression uses. Start by finding where GetItem already rejects unused names with the same ValidationException, then check whether SearchVectors can reuse that check. Done means SearchVectors with an unused key such as #x returns the measured message, and requests that use every name still succeed.

Written by the indexing model from the issue text.

Description

bug
Measured

DynamoDB in us-east-1 on 2026-11-21: SearchVectors and GetItem with ProjectionExpression #n and ExpressionAttributeNames {"#n": "ssn", "#x": "cat"} answer ValidationException Value provided in ExpressionAttributeNames unused in expressions: keys: {#x}. ExtendDB answers the SearchVectors request with 200 and ssn.

Expected

SearchVectors refuses a name that no expression uses, with the measured message.

Dominant language
Rust
Stars
517
Forks
60
Avg merge
3d 21h
Merged PRs (30d)
116

Getting set up

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 ExtendDB/extenddb

All issues in ExtendDB/extenddb

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.