Compare commits

..

2 Commits

Author SHA1 Message Date
BubbleCal d8d3d712d6 fix ut
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
2024-08-13 16:10:01 +08:00
BubbleCal a98ea8bb53 chore: upgrade lance to 0.17.0-beta.3
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
2024-08-13 15:15:25 +08:00
5 changed files with 14 additions and 14 deletions
+8 -6
View File
@@ -20,12 +20,14 @@ keywords = ["lancedb", "lance", "database", "vector", "search"]
categories = ["database-implementations"]
[workspace.dependencies]
lance = { "version" = "=0.17.0", "features" = ["dynamodb"] }
lance-index = { "version" = "=0.17.0" }
lance-linalg = { "version" = "=0.17.0" }
lance-testing = { "version" = "=0.17.0" }
lance-datafusion = { "version" = "=0.17.0" }
lance-encoding = { "version" = "=0.17.0" }
lance = { "version" = "=0.17.0", "features" = [
"dynamodb",
], git = "https://github.com/lancedb/lance.git", tag = "v0.17.0-beta.2" }
lance-index = { "version" = "=0.17.0", git = "https://github.com/lancedb/lance.git", tag = "v0.17.0-beta.2" }
lance-linalg = { "version" = "=0.17.0", git = "https://github.com/lancedb/lance.git", tag = "v0.17.0-beta.2" }
lance-testing = { "version" = "=0.17.0", git = "https://github.com/lancedb/lance.git", tag = "v0.17.0-beta.2" }
lance-datafusion = { "version" = "=0.17.0", git = "https://github.com/lancedb/lance.git", tag = "v0.17.0-beta.2" }
lance-encoding = { "version" = "=0.17.0", git = "https://github.com/lancedb/lance.git", tag = "v0.17.0-beta.2" }
# Note that this one does not include pyarrow
arrow = { version = "52.2", optional = false }
arrow-array = "52.2"
+2 -1
View File
@@ -20,5 +20,6 @@ Cargo.toml
biome.json
build.rs
jest.config.js
native.d.ts
tsconfig.json
typedoc.json
typedoc.json
+1 -1
View File
@@ -3,7 +3,7 @@ name = "lancedb"
# version in Cargo.toml
dependencies = [
"deprecation",
"pylance==0.16.1",
"pylance==0.17.0-beta.2",
"ratelimiter~=1.0",
"requests>=2.31.0",
"retry>=0.9.2",
+2 -5
View File
@@ -15,7 +15,7 @@ import logging
import uuid
from concurrent.futures import Future
from functools import cached_property
from typing import Dict, Iterable, Optional, Union, Literal
from typing import Dict, Iterable, Optional, Union
import pyarrow as pa
from lance import json_to_schema
@@ -97,7 +97,6 @@ class RemoteTable(Table):
def create_scalar_index(
self,
column: str,
index_type: Literal["BTREE", "BITMAP", "LABEL_LIST", "scalar"] = "scalar",
):
"""Creates a scalar index
Parameters
@@ -105,10 +104,8 @@ class RemoteTable(Table):
column : str
The column to be indexed. Must be a boolean, integer, float,
or string column.
index_type : str
The index type of the scalar index. Must be "scalar" (BTREE),
"BTREE", "BITMAP", or "LABEL_LIST"
"""
index_type = "scalar"
data = {
"column": column,
+1 -1
View File
@@ -2781,7 +2781,7 @@ mod tests {
.get_index_type(index_uuid)
.await
.unwrap(),
Some("IVF".to_string())
Some("IVF_PQ".to_string())
);
assert_eq!(
table