BITMAP_SUBSET_IN_RANGE (Lakehouse v1)
生成源位图在指定范围内的子位图。
Analyze 语法
Section titled “Analyze 语法”func.bitmap_subset_in_range( <bitmap>, <start>, <end> )Analyze 示例
Section titled “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 │└─────────────────────────────────────────────────────────────────┘SQL 语法
Section titled “SQL 语法”BITMAP_SUBSET_IN_RANGE( <bitmap>, <start>, <end> )SQL 示例
Section titled “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 │└───────────────────────────────────────────────────────────────┘