Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Frontend fetch calls now check `response.ok` before parsing JSON, so HTTP error responses surface as error states instead of being parsed as data (#27).
- `/rows` with unknown column names and `/vector/preview` with a missing or non-vector column now return 400 as intended; the error was previously masked as a generic 500 (#28).
- `/datasets` uses `list_tables()` on lancedb versions that have it, falling back to the deprecated `table_names()` on older ones (#54).

### Docs
- README refresh: corrected the supported-data-types section (variable-length float vectors render fully since #14; no 2048-dimension limit), documented the release image tags from #46, added test suite instructions, made 0.29.2 the recommendation throughout, and linked CONTRIBUTING.md and CHANGELOG.md (#51).
Expand Down
7 changes: 6 additions & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ async def health_check():
async def list_datasets():
try:
db = get_lance_connection()
table_names = db.table_names()
if hasattr(db, "list_tables"):
table_names = db.list_tables().tables
else:
# table_names() was deprecated in favor of list_tables(),
# but older lancedb versions only have table_names()
table_names = db.table_names()
valid_tables = [name for name in table_names if validate_dataset_name(name)]
return {"datasets": valid_tables}
except Exception as e:
Expand Down
Loading