Skip to content

Commit d57fdcf

Browse files
authored
Fix sort with indices mapping (#5587)
Fix sort with indices mapping
1 parent a2a83a8 commit d57fdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasets/arrow_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3986,7 +3986,7 @@ def sort(
39863986

39873987
sort_table = query_table(
39883988
table=self._data,
3989-
key=range(self._data.num_rows),
3989+
key=slice(0, len(self)),
39903990
indices=self._indices if self._indices is not None else None,
39913991
)
39923992

0 commit comments

Comments
 (0)