Skip to content

Commit 959676d

Browse files
committed
CNDB-14879: check for vector types in V7OnDiskFormat.perIndexComponentTypes() before checking if they're literals
1 parent 4c9c286 commit 959676d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/java/org/apache/cassandra/index/sai/disk/v7/V7OnDiskFormat.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public class V7OnDiskFormat extends V6OnDiskFormat
3939
@Override
4040
public Set<IndexComponentType> perIndexComponentTypes(AbstractType<?> validator)
4141
{
42+
// Vector types are technically "literal" (frozen) but should not have DOC_LENGTHS
43+
// which is only for text search BM25 functionality
44+
if (validator.isVector())
45+
return super.perIndexComponentTypes(validator);
4246
if (TypeUtil.isLiteral(validator))
4347
return LITERAL_COMPONENTS;
4448
return super.perIndexComponentTypes(validator);

0 commit comments

Comments
 (0)