Skip to content

Commit ba2ec59

Browse files
krzysztof-kwittcpcloud
authored andcommitted
fix(duckdb): remove invalid operations from registry
1 parent 3ebcdb7 commit ba2ec59

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ibis/backends/duckdb/registry.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,23 @@ def _struct_column(t, op):
255255
ops.MultiQuantile: reduction(sa.func.quantile_cont),
256256
}
257257
)
258+
259+
260+
_invalid_operations = {
261+
# ibis.expr.operations.analytic
262+
ops.CumulativeAll,
263+
ops.CumulativeAny,
264+
ops.CumulativeOp,
265+
ops.NTile,
266+
# ibis.expr.operations.generic
267+
ops.TypeOf,
268+
# ibis.expr.operations.strings
269+
ops.Capitalize,
270+
ops.Translate,
271+
# ibis.expr.operations.temporal
272+
ops.TimestampDiff,
273+
}
274+
275+
operation_registry = {
276+
k: v for k, v in operation_registry.items() if k not in _invalid_operations
277+
}

0 commit comments

Comments
 (0)