NVIDIA / NVIDIA/cudf

[FEA] No-op Sort expression if input `Column.is_sorted` in cudf_polars

Open
#21,916 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.