hotfix: add support for scalar index type in remote table

This commit is contained in:
Ryan Green
2025-02-26 09:13:30 -03:30
parent 7a3ef68306
commit f31e0c749d

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
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,