From 91abe5f9f191c6f9a96e8b9df5798f43cd24b1d9 Mon Sep 17 00:00:00 2001 From: Jim Crist-Harif Date: Fri, 14 Jun 2024 08:55:29 -0500 Subject: [PATCH] refactor(polars): delete some dead code in the polars backend --- ibis/backends/polars/compiler.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ibis/backends/polars/compiler.py b/ibis/backends/polars/compiler.py index 0a46b9ea871b..c9334577a27f 100644 --- a/ibis/backends/polars/compiler.py +++ b/ibis/backends/polars/compiler.py @@ -176,16 +176,6 @@ def column(op, **_): return pl.col(op.name) -@translate.register(ops.SortKey) -def sort_key(op, **kw): - arg = translate(op.expr, **kw) - descending = op.descending - try: - return arg.sort(descending=descending) - except TypeError: # pragma: no cover - return arg.sort(reverse=descending) # pragma: no cover - - @translate.register(ops.Project) def project(op, **kw): lf = translate(op.parent, **kw)