relax to warning

This commit is contained in:
Will Jones
2023-10-13 12:04:59 -07:00
parent b12eb7a6bf
commit 61de91f08d
2 changed files with 3 additions and 4 deletions

View File

@@ -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(

View File

@@ -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()