Skip to content

Returns the difference of two bitmaps (elements in first but not second).

func.bitmap_andnot(<bm1>, <bm2>)
func.bitmap_andnot(get_column(table, 'bm1'), get_column(table, 'bm2'))
┌──────────┐
│ (bitmap) │
└──────────┘
BITMAP_ANDNOT(<bm1>, <bm2>)
SELECT BITMAP_TO_STRING(BITMAP_ANDNOT(
BITMAP_FROM_STRING('1,2,3'), BITMAP_FROM_STRING('2,3')));
┌───┐
1
└───┘