Skip to content
Merged
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
4 changes: 2 additions & 2 deletions python/python/ci_benchmarks/datagen/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _create_indices(ds: lance.LanceDataset):
Args:
ds: Lance dataset to create indices on
"""
existing_indices = [idx.name for idx in ds.list_indices()]
existing_indices = {idx.name for idx in ds.describe_indices()}

# Create inverted index with position support for phrase queries
# This index supports both match and phrase queries
Expand Down Expand Up @@ -164,7 +164,7 @@ def _create(dataset_uri: str):
LOGGER.info("Dataset exists with %s rows", f"{row_count:,}")

# Check if indices exist
existing_indices = [idx.name for idx in ds.list_indices()]
existing_indices = {idx.name for idx in ds.describe_indices()}
if "text_fts_idx" in existing_indices:
LOGGER.info("Dataset and indices already exist, skipping generation")
return
Expand Down