File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -359,5 +359,8 @@ def _time_from_hms(t, expr):
359
359
ops .Degrees : unary (sa .func ._ibis_sqlite_degrees ),
360
360
ops .Radians : unary (sa .func ._ibis_sqlite_radians ),
361
361
ops .Clip : _clip (min_func = sa .func .min , max_func = sa .func .max ),
362
+ # sqlite doesn't implement a native xor operator
363
+ ops .BitwiseXor : fixed_arity (sa .func ._ibis_sqlite_xor , 2 ),
364
+ ops .BitwiseNot : unary (sa .func ._ibis_sqlite_inv ),
362
365
}
363
366
)
Original file line number Diff line number Diff line change @@ -291,6 +291,16 @@ def _ibis_sqlite_radians(x):
291
291
return None if x is None else math .radians (x )
292
292
293
293
294
+ @udf
295
+ def _ibis_sqlite_xor (x , y ):
296
+ return None if x is None or y is None else x ^ y
297
+
298
+
299
+ @udf
300
+ def _ibis_sqlite_inv (x ):
301
+ return None if x is None else ~ x
302
+
303
+
294
304
class _ibis_sqlite_var :
295
305
def __init__ (self , offset ):
296
306
self .mean = 0.0
You can’t perform that action at this time.
0 commit comments