Skip to content

Commit

Permalink
feat(duckdb): implement approx_count_distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed May 23, 2022
1 parent 4b533cd commit 03c89ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibis/backends/duckdb/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ibis.backends.base.sql.alchemy.registry import (
_geospatial_functions,
_table_column,
reduction,
)
from ibis.backends.postgres.registry import fixed_arity, operation_registry

Expand Down Expand Up @@ -166,6 +167,7 @@ def _regex_extract(t, expr):
ops.RegexExtract: _regex_extract,
ops.RegexReplace: fixed_arity(sa.func.regexp_replace, 3),
ops.StringContains: fixed_arity(sa.func.contains, 2),
ops.HLLCardinality: reduction(sa.func.approx_count_distinct),
}
)

Expand Down

0 comments on commit 03c89ad

Please sign in to comment.