Skip to content

Commit 53406c1

Browse files
authored
Fix missing table name in exception message in CassandraVectorStore (#2842)
Updated the `Preconditions.checkState` call to include `this.schema.table` as an argument. Signed-off-by: jitokim <[email protected]>
1 parent 2e0017d commit 53406c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector-stores/spring-ai-cassandra-store/src/main/java/org/springframework/ai/vectorstore/cassandra/CassandraVectorStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void checkSchemaValid(int vectorDimension) {
546546
.getKeyspace(this.schema.keyspace)
547547
.get()
548548
.getTable(this.schema.table)
549-
.isPresent(), "table %s does not exist");
549+
.isPresent(), "table %s does not exist", this.schema.table);
550550

551551
TableMetadata tableMetadata = this.session.getMetadata()
552552
.getKeyspace(this.schema.keyspace)

0 commit comments

Comments
 (0)