BITMAP_XOR_COUNT

Counts the number of bits set to 1 in the bitmap by performing a logical XOR (exclusive OR) operation.

Analyze Syntax

func.bitmap_xor_count( <bitmap> )

Analyze Examples

func.bitmap_xor_count(func.to_bitmap('1, 3, 5'))

┌──────────────────────────────────────────────────┐
 func.bitmap_xor_count(func.to_bitmap('1, 3, 5')) 
├──────────────────────────────────────────────────┤
                                                3 
└──────────────────────────────────────────────────┘

SQL Syntax

BITMAP_XOR_COUNT( <bitmap> )

SQL Examples

SELECT BITMAP_XOR_COUNT(TO_BITMAP('1, 3, 5'));

┌────────────────────────────────────────┐
 bitmap_xor_count(to_bitmap('1, 3, 5')) 
├────────────────────────────────────────┤
                                      3 
└────────────────────────────────────────┘
Last modified April 24, 2024 at 9:36 PM EST: updating bitwise operation functions (33af5e5)