Skip to content

Commit

Permalink
fix(duckdb): remove invalid operations from registry
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-kwitt authored and cpcloud committed Jan 13, 2023
1 parent 3ebcdb7 commit ba2ec59
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ibis/backends/duckdb/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,23 @@ def _struct_column(t, op):
ops.MultiQuantile: reduction(sa.func.quantile_cont),
}
)


_invalid_operations = {
# ibis.expr.operations.analytic
ops.CumulativeAll,
ops.CumulativeAny,
ops.CumulativeOp,
ops.NTile,
# ibis.expr.operations.generic
ops.TypeOf,
# ibis.expr.operations.strings
ops.Capitalize,
ops.Translate,
# ibis.expr.operations.temporal
ops.TimestampDiff,
}

operation_registry = {
k: v for k, v in operation_registry.items() if k not in _invalid_operations
}

0 comments on commit ba2ec59

Please sign in to comment.