Skip to content

flink-extended/flink-roaringbitmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Flink RoaringBitmap UDFs

A collection of RoaringBitmap user-defined functions (UDFs) for Apache Flink.

This project provides a temporary solution for RoaringBitmap support in Flink SQL before FLIP-556 is formally supported in Flink. Before that, you can use the published UDF JARs with Flink 1.18 through Flink 2.x.

Getting Started

Prerequisites

  • Apache Flink 1.18 or later (including Flink 2.x)
  • Java 8 or later

Installation

Download the latest release JAR from the Releases page, and add it to your Flink lib/ directory or include it in your job's classpath.

Usage

Register the UDFs in your Flink SQL environment:

-- Create a RoaringBitmap from a column of integer values
SELECT rb_build_agg(user_id) FROM events GROUP BY dimension;

-- Get the cardinality of a RoaringBitmap
SELECT rb_cardinality(bitmap) FROM bitmaps;

-- Compute the union (OR) of multiple RoaringBitmaps
SELECT rb_or_agg(bitmap) FROM bitmaps GROUP BY dimension;

Building from Source

mvn clean package

License

This project is licensed under the Apache License 2.0.

About

A collection of roaringbitmap user-defined functions for Apache Flink

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors