feat: allow prefiltering with index (#610)

Support for prefiltering with an index was added in lance version 0.8.7.
We can remove the lancedb check that prevents this. Closes #261
This commit is contained in:
Weston Pace
2023-10-31 13:11:03 -07:00
parent b5e57ebce3
commit 301e08f30e
2 changed files with 24 additions and 6 deletions

View File

@@ -864,12 +864,6 @@ class LanceTable(Table):
def _execute_query(self, query: Query) -> pa.Table:
ds = self.to_lance()
if query.prefilter:
for idx in ds.list_indices():
if query.vector_column in idx["fields"]:
raise NotImplementedError(
"Prefiltering for indexed vector column is coming soon."
)
return ds.to_table(
columns=query.columns,
filter=query.filter,