fix!: sort table names (#619)

https://github.com/lancedb/lance/issues/1385
This commit is contained in:
Bert
2023-11-01 10:50:09 -04:00
committed by GitHub
parent 7eec2b8f9a
commit 24111d543a
3 changed files with 22 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ class LanceDBConnection(DBConnection):
return self._uri
def table_names(self) -> list[str]:
"""Get the names of all tables in the database.
"""Get the names of all tables in the database. The names are sorted.
Returns
-------
@@ -287,6 +287,7 @@ class LanceDBConnection(DBConnection):
for file_info in paths
if file_info.extension == "lance"
]
tables.sort()
return tables
def __len__(self) -> int: