Compare commits

...

2 Commits

Author SHA1 Message Date
Lance Release
1e0cc69401 Bump version: 0.9.0-beta.4 → 0.9.0-beta.5 2025-02-26 12:46:00 +00:00
Ryan Green
f31e0c749d hotfix: add support for scalar index type in remote table 2025-02-26 09:13:30 -03:30
3 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
[tool.bumpversion] [tool.bumpversion]
current_version = "0.9.0-beta.4" current_version = "0.9.0-beta.5"
parse = """(?x) parse = """(?x)
(?P<major>0|[1-9]\\d*)\\. (?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\. (?P<minor>0|[1-9]\\d*)\\.

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "lancedb-python" name = "lancedb-python"
version = "0.9.0-beta.4" version = "0.9.0-beta.5"
edition.workspace = true edition.workspace = true
description = "Python bindings for LanceDB" description = "Python bindings for LanceDB"
license.workspace = true license.workspace = true

View File

@@ -15,7 +15,7 @@ import logging
import uuid import uuid
from concurrent.futures import Future from concurrent.futures import Future
from functools import cached_property from functools import cached_property
from typing import Dict, Iterable, Optional, Union from typing import Dict, Iterable, Optional, Union, Literal
import pyarrow as pa import pyarrow as pa
from lance import json_to_schema from lance import json_to_schema
@@ -82,6 +82,7 @@ class RemoteTable(Table):
def create_scalar_index( def create_scalar_index(
self, self,
column: str, column: str,
index_type: Literal["BTREE", "BITMAP", "LABEL_LIST", "scalar"] = "scalar",
): ):
"""Creates a scalar index """Creates a scalar index
Parameters Parameters
@@ -90,8 +91,6 @@ class RemoteTable(Table):
The column to be indexed. Must be a boolean, integer, float, The column to be indexed. Must be a boolean, integer, float,
or string column. or string column.
""" """
index_type = "scalar"
data = { data = {
"column": column, "column": column,
"index_type": index_type, "index_type": index_type,