jorisvandenbossche commented on code in PR #14976:
URL: https://github.com/apache/arrow/pull/14976#discussion_r1054485541
##########
python/pyarrow/table.pxi:
##########
@@ -4758,11 +4758,11 @@ cdef class Table(_PandasConvertible):
if isinstance(sorting, str):
sorting = [(sorting, "ascending")]
- indices = _pc().sort_indices(
- self,
- options=_pc().SortOptions(sort_keys=sorting, **kwargs)
- )
- return self.take(indices)
+ res = _pc()._exec_plan._sort_source(self, output_type=Table,
+ sort_options=_pc().SortOptions(
+ sort_keys=sorting, **kwargs
+ ))
Review Comment:
Is there any advantage is using the exec plan version here, instead of the
current version? (but I suppose also no disadvantage)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]