BITMAP_SUBSET_IN_RANGE (Lakehouse v1)
Gera um sub-bitmap do bitmap de origem dentro de um intervalo especificado.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.bitmap_subset_in_range( <bitmap>, <start>, <end> )Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.bitmap_subset_in_range(func.build_bitmap([5, 7, 9]), 6, 9)
┌─────────────────────────────────────────────────────────────────┐│ func.bitmap_subset_in_range(func.build_bitmap([5, 7, 9]), 6, 9) │├─────────────────────────────────────────────────────────────────┤│ 7 │└─────────────────────────────────────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”BITMAP_SUBSET_IN_RANGE( <bitmap>, <start>, <end> )Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT BITMAP_SUBSET_IN_RANGE(BUILD_BITMAP([5,7,9]), 6, 9)::String;
┌───────────────────────────────────────────────────────────────┐│ bitmap_subset_in_range(build_bitmap([5, 7, 9]), 6, 9)::string │├───────────────────────────────────────────────────────────────┤│ 7 │└───────────────────────────────────────────────────────────────┘