Skip to content

Commit 348cd08

Browse files
cpcloudkszucs
authored andcommitted
feat(clickhouse): implement bitwise operations
1 parent 9b1ebf5 commit 348cd08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ibis/backends/clickhouse/registry.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,12 @@ def _repeat(translator, expr):
876876
ops.NthValue: _nth_value,
877877
ops.Window: window.window,
878878
ops.NTile: window.ntile,
879+
ops.BitwiseAnd: _fixed_arity('bitAnd', 2),
880+
ops.BitwiseOr: _fixed_arity('bitOr', 2),
881+
ops.BitwiseXor: _fixed_arity('bitXor', 2),
882+
ops.BitwiseNot: _unary('bitNot'),
883+
ops.BitwiseLeftShift: _fixed_arity('bitShiftLeft', 2),
884+
ops.BitwiseRightShift: _fixed_arity('bitShiftRight', 2),
879885
}
880886

881887

0 commit comments

Comments
 (0)