mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-05 19:32:56 +00:00
be consistent about cloud behavior
This commit is contained in:
@@ -93,6 +93,10 @@ export class RemoteQuery<T = number[]> extends Query<T> {
|
||||
queryVector = query as number[]
|
||||
}
|
||||
|
||||
if ((this as any)._useIndex === false) {
|
||||
throw new Error('LanceDB Cloud does not yet support useIndex=false')
|
||||
}
|
||||
|
||||
const data = await this._client.search(
|
||||
this._name,
|
||||
queryVector,
|
||||
|
||||
@@ -103,7 +103,7 @@ class RemoteTable(Table):
|
||||
raise NotImplementedError("Cloud support for prefiltering is coming soon")
|
||||
if not query.use_index:
|
||||
raise NotImplementedError(
|
||||
"Cloud does not support non-indexed queries if the table has indices"
|
||||
"LanceDB Cloud does not yet support use_index=False"
|
||||
)
|
||||
result = self._conn._client.query(self._name, query)
|
||||
return self._conn._loop.run_until_complete(result).to_arrow()
|
||||
|
||||
Reference in New Issue
Block a user