spring-projects / spring-projects/spring-ai

CassandraVectorStore missing table name when table does not exists

Open
#2,837 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

In CassandraVectorStore, when the table name does not exist, in the checkSchemaValid method, the table name is missing in the exception.

Preconditions.checkState(this.session.getMetadata()
	.getKeyspace(this.schema.keyspace)
	.get()
	.getTable(this.schema.table)
	.isPresent(), "table %s does not exist");

https://github.com/spring-projects/spring-ai/blob/e7233717230ce8715dc39122341826aaf44324a9/vector-stores/spring-ai-cassandra-store/src/main/java/org/springframework/ai/vectorstore/cassandra/CassandraVectorStore.java#L549

Contributor guide

Open the 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.

Research direction

Start in vector-stores/spring-ai-cassandra-store/src/main/java/org/springframework/ai/vectorstore/cassandra/CassandraVectorStore.java, at the checkSchemaValid method and its existing table-existence check. Verify that the exception reports the configured table name when the table is absent, and confirm the resulting message through the relevant Cassandra vector-store test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, java, spring
Domain
databases
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.