Skip to content

Commit

Permalink
feat(impala): implement bitwise operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Sep 5, 2022
1 parent 58c42f9 commit c5302ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ibis/backends/base/sql/registry/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}


Expand Down

0 comments on commit c5302ab

Please sign in to comment.