Skip to content

Commit

Permalink
feat(polars): implement approx_nunique
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrist committed Aug 16, 2024
1 parent fb22e20 commit 3f3738d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions ibis/backends/polars/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ def struct_column(op, **kw):
ops.All: "all",
ops.Any: "any",
ops.ApproxMedian: "median",
ops.ApproxCountDistinct: "approx_n_unique",
ops.Count: "count",
ops.CountDistinct: "n_unique",
ops.Max: "max",
Expand Down
3 changes: 0 additions & 3 deletions ibis/backends/tests/test_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,6 @@ def mean_and_std(v):
lambda t, where: t.string_col.approx_nunique(where=where),
lambda t, where: t.string_col[where].nunique(),
id="approx_nunique",
marks=[
pytest.mark.notimpl(["polars"], raises=com.OperationNotDefinedError),
],
),
param(
lambda t, where: t.bigint_col.bit_and(where=where),
Expand Down

0 comments on commit 3f3738d

Please sign in to comment.