mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-26 06:39:57 +00:00
relax to warning
This commit is contained in:
@@ -94,7 +94,7 @@ export class RemoteQuery<T = number[]> extends Query<T> {
|
||||
}
|
||||
|
||||
if ((this as any)._useIndex === false) {
|
||||
throw new Error('LanceDB Cloud does not yet support useIndex=false')
|
||||
console.warn('LanceDB Cloud does not yet support useIndex=false, ignoring option.')
|
||||
}
|
||||
|
||||
const data = await this._client.search(
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import uuid
|
||||
import warnings
|
||||
from functools import cached_property
|
||||
from typing import Optional, Union
|
||||
|
||||
@@ -102,9 +103,7 @@ class RemoteTable(Table):
|
||||
if query.prefilter:
|
||||
raise NotImplementedError("Cloud support for prefiltering is coming soon")
|
||||
if not query.use_index:
|
||||
raise NotImplementedError(
|
||||
"LanceDB Cloud does not yet support use_index=False"
|
||||
)
|
||||
warnings.warn("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