Skip to content

Commit 8604065

Browse files
committed
allow any neighbor compression types
1 parent 7a0fa8c commit 8604065

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213594,11 +213594,9 @@ int diskAnnOpenIndex(
213594213594
if( compressNeighbours == 0 ){
213595213595
pIndex->nEdgeVectorType = pIndex->nNodeVectorType;
213596213596
pIndex->nEdgeVectorSize = pIndex->nNodeVectorSize;
213597-
}else if( compressNeighbours == VECTOR_TYPE_FLOAT1BIT ){
213597+
}else{
213598213598
pIndex->nEdgeVectorType = compressNeighbours;
213599213599
pIndex->nEdgeVectorSize = vectorDataSize(compressNeighbours, pIndex->nVectorDims);
213600-
}else{
213601-
return SQLITE_ERROR;
213602213600
}
213603213601

213604213602
*ppIndex = pIndex;

libsql-ffi/bundled/src/sqlite3.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213594,11 +213594,9 @@ int diskAnnOpenIndex(
213594213594
if( compressNeighbours == 0 ){
213595213595
pIndex->nEdgeVectorType = pIndex->nNodeVectorType;
213596213596
pIndex->nEdgeVectorSize = pIndex->nNodeVectorSize;
213597-
}else if( compressNeighbours == VECTOR_TYPE_FLOAT1BIT ){
213597+
}else{
213598213598
pIndex->nEdgeVectorType = compressNeighbours;
213599213599
pIndex->nEdgeVectorSize = vectorDataSize(compressNeighbours, pIndex->nVectorDims);
213600-
}else{
213601-
return SQLITE_ERROR;
213602213600
}
213603213601

213604213602
*ppIndex = pIndex;

libsql-sqlite3/src/vectordiskann.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,11 +1749,9 @@ int diskAnnOpenIndex(
17491749
if( compressNeighbours == 0 ){
17501750
pIndex->nEdgeVectorType = pIndex->nNodeVectorType;
17511751
pIndex->nEdgeVectorSize = pIndex->nNodeVectorSize;
1752-
}else if( compressNeighbours == VECTOR_TYPE_FLOAT1BIT ){
1752+
}else{
17531753
pIndex->nEdgeVectorType = compressNeighbours;
17541754
pIndex->nEdgeVectorSize = vectorDataSize(compressNeighbours, pIndex->nVectorDims);
1755-
}else{
1756-
return SQLITE_ERROR;
17571755
}
17581756

17591757
*ppIndex = pIndex;

0 commit comments

Comments
 (0)