Skip to content

Performs a bitwise XOR (exclusive OR) operation on the two bitmaps.

func.bitmap_xor( <bitmap1>, <bitmap2> )
func.bitmap_xor(func.build_bitmap([1, 4, 5]), func.build_bitmap([5, 6, 7]))
┌─────────────────────────────────────────────────────────────────────────────┐
│ func.bitmap_xor(func.build_bitmap([1, 4, 5]), func.build_bitmap([5, 6, 7])) │
├─────────────────────────────────────────────────────────────────────────────┤
1,4,6,7
└─────────────────────────────────────────────────────────────────────────────┘
BITMAP_XOR( <bitmap1>, <bitmap2> )
SELECT BITMAP_XOR(BUILD_BITMAP([1,4,5]), BUILD_BITMAP([5,6,7]))::String;
┌──────────────────────────────────────────────────────────────────────┐
│ bitmap_xor(build_bitmap([1, 4, 5]), build_bitmap([5, 6, 7]))::string │
├──────────────────────────────────────────────────────────────────────┤
1,4,6,7
└──────────────────────────────────────────────────────────────────────┘