[FEA] No-op Sort expression if input `Column.is_sorted` in cudf_polars
Open
cudf-polars
feature request
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
(Identified by Claude)
If the input `Column.is_sorted` and both `nulls_last` and `descending` match the `Column.null_order` and `Column.order` respectively, this evaluate can avoid calling the sort.
https://github.com/rapidsai/cudf/blob/01c7adae10d12da7a175fb616300f8190522b6e0/python/cudf_polars/cudf_polars/dsl/expressions/sorting.py#L35-L53
Contributor guide
Assessment
This issue has not been assessed yet.