Skip to content

Commit

Permalink
feat(sqlalchemy): add xor translation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed May 23, 2022
1 parent 6a1b104 commit 2921664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ibis/backends/base/sql/alchemy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ def _string_join(t, expr):
ops.Alias: _alias,
ops.And: fixed_arity(sql.and_, 2),
ops.Or: fixed_arity(sql.or_, 2),
ops.Xor: fixed_arity(lambda x, y: (x | y) & ~(x & y), 2),
ops.Not: unary(sa.not_),
ops.Abs: unary(sa.func.abs),
ops.Cast: _cast,
Expand Down

0 comments on commit 2921664

Please sign in to comment.