From f31e0c749d1e1264f32624f280d861fb043af1f4 Mon Sep 17 00:00:00 2001 From: Ryan Green Date: Wed, 26 Feb 2025 09:13:30 -0330 Subject: [PATCH] hotfix: add support for scalar index type in remote table --- python/python/lancedb/remote/table.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/python/lancedb/remote/table.py b/python/python/lancedb/remote/table.py index d6fadea0..c65e308f 100644 --- a/python/python/lancedb/remote/table.py +++ b/python/python/lancedb/remote/table.py @@ -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 +from typing import Dict, Iterable, Optional, Union, Literal import pyarrow as pa from lance import json_to_schema @@ -82,6 +82,7 @@ class RemoteTable(Table): def create_scalar_index( self, column: str, + index_type: Literal["BTREE", "BITMAP", "LABEL_LIST", "scalar"] = "scalar", ): """Creates a scalar index Parameters @@ -90,8 +91,6 @@ class RemoteTable(Table): The column to be indexed. Must be a boolean, integer, float, or string column. """ - index_type = "scalar" - data = { "column": column, "index_type": index_type,