Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lance_ray/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,8 +1263,7 @@ def create_index(

if not replace and _index_exists(dataset_obj, name):
raise ValueError(
f"Index with name '{name}' already exists. Set replace=True "
"to replace it."
f"Index with name '{name}' already exists. Set replace=True to replace it."
)

fragments = dataset_obj.get_fragments()
Expand Down
4 changes: 1 addition & 3 deletions lance_ray/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ def resolve_namespace_table(
)
location = describe_response.location
if location is None:
raise ValueError(
"Namespace did not return a 'location' for the table"
)
raise ValueError("Namespace did not return a 'location' for the table")
if describe_response.storage_options:
merged_storage_options.update(describe_response.storage_options)
return location, merged_storage_options
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [

dependencies = [
"ray[data]>=2.41.0",
"pylance>=8.0.0b11",
"pylance>=9.0.0b3",
"lance-namespace",
"packaging",
"pyarrow>=17.0.0",
Expand Down
4 changes: 1 addition & 3 deletions tests/test_distributed_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,9 +1567,7 @@ def test_build_distributed_vector_index(tmp_path, index_type):
assert len(indices) > 0, "No indices found after distributed vector index build"

# Find the index with the name we specified
vec_index = next(
(idx for idx in indices if idx.name == f"idx_{index_type}"), None
)
vec_index = next((idx for idx in indices if idx.name == f"idx_{index_type}"), None)
assert vec_index is not None, f"Index with name idx_{index_type} not found"
assert vec_index.index_type == index_type, (
f"Expected {index_type} vector index, got {vec_index.index_type}"
Expand Down
28 changes: 14 additions & 14 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading