Ensure prevention of vector column indexing applies only to table indexes
Otherwise appropriate vector indexes won't be built when necessary,
e.g., when a nearest neighbor index is requested as part of an index
redefinition.
@@ -840,9 +840,10 @@ class SqliteStore(SqlStore):
if not self.has_graph_index(table_name, index):
if self.readonly:
return
+ # do not standard-index any vector columns:
+ if not isinstance(index, ispec.VectorIndex):
for col in index.get_columns():
if self.is_vector_column(table_name, col):
- # do not index any vector columns:
return
self.ensure_transaction()
loglevel = 0 if explain else 1
