diff --git a/ibis/backends/base/sql/registry/main.py b/ibis/backends/base/sql/registry/main.py index 537a390b5eab..820a0ea917ed 100644 --- a/ibis/backends/base/sql/registry/main.py +++ b/ibis/backends/base/sql/registry/main.py @@ -252,6 +252,13 @@ def concat(translator, expr): ops.And: binary_infix.binary_infix_op('AND'), ops.Or: binary_infix.binary_infix_op('OR'), ops.Xor: binary_infix.xor, + # bitwise operations + ops.BitwiseAnd: fixed_arity('bitand', 2), + ops.BitwiseOr: fixed_arity('bitor', 2), + ops.BitwiseXor: fixed_arity('bitxor', 2), + ops.BitwiseLeftShift: fixed_arity('shiftleft', 2), + ops.BitwiseRightShift: fixed_arity('shiftright', 2), + ops.BitwiseNot: unary('bitnot'), }