Skip to content

Commit

Permalink
feat(postgres): implement bitwise xor
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Sep 5, 2022
1 parent bd9f64c commit 9b1ebf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis/backends/postgres/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
unary,
)
from ibis.backends.base.sql.alchemy.datatypes import to_sqla_type
from ibis.backends.base.sql.alchemy.registry import get_col_or_deferred_col
from ibis.backends.base.sql.alchemy.registry import (
_bitwise_op,
get_col_or_deferred_col,
)

operation_registry = sqlalchemy_operation_registry.copy()
operation_registry.update(sqlalchemy_window_functions_registry)
Expand Down Expand Up @@ -617,5 +620,6 @@ def variance_compiler(t, expr):
ops.Unnest: unary(sa.func.unnest),
ops.Covariance: _covar,
ops.Correlation: _corr,
ops.BitwiseXor: _bitwise_op("#"),
}
)

0 comments on commit 9b1ebf5

Please sign in to comment.