Skip to content

Commit

Permalink
fix(flink): re-implement ops.ApproxCountDistinct
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored and cpcloud committed Nov 5, 2023
1 parent 0076c25 commit 2e3a5a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ibis/backends/flink/registry.py
Expand Up @@ -4,7 +4,7 @@

import ibis.common.exceptions as com
import ibis.expr.operations as ops
from ibis.backends.base.sql.registry import fixed_arity, helpers, unary
from ibis.backends.base.sql.registry import aggregate, fixed_arity, helpers, unary
from ibis.backends.base.sql.registry import (
operation_registry as base_operation_registry,
)
Expand Down Expand Up @@ -389,6 +389,7 @@ def _timestamp_from_ymdhms(
ops.Degrees: unary("degrees"),
ops.Radians: unary("radians"),
# Unary aggregates
ops.ApproxCountDistinct: aggregate.reduction("approx_count_distinct"),
ops.CountStar: _count_star,
# String operations
ops.StringLength: unary("char_length"),
Expand Down
1 change: 0 additions & 1 deletion ibis/backends/tests/test_aggregation.py
Expand Up @@ -533,7 +533,6 @@ def mean_and_std(v):
id="approx_nunique",
marks=[
pytest.mark.notimpl(["polars"], raises=com.OperationNotDefinedError),
pytest.mark.notimpl(["flink"], "WIP", raises=Py4JError),
],
),
param(
Expand Down

0 comments on commit 2e3a5a0

Please sign in to comment.