All data processing in kamu is done by a set of plug-in engines. This allows us to integrate many mature data processing frameworks, use them to transform data, while kamu coordinates all the advanced aspects of processing, tracks provenance, ensures verifiability, etc.

The opinions below relate to ODF adapters implemented using the described engine, not the engines themselves. Engines featured here all have very different designs, making them more suitable for some tasks than others. Information below is intended as a rough guidance for engine choice within ODF and should be taken with a big grain of salt.

Known Engine Implementations

NameTechnologyQuery DialectLinksNotes
sparkApache SparkSpark Streaming SQL with Sedona GIS ExtensionsRepository
Image
Spark is used in kamu-cli for all data ingestion and is default (but not only) engine for SQL shell. Spark is also used in combination with Livy to query data from embedded Jupyter Notebooks. It’s currently the only engine that supports GIS data via Apache Sedona integration.
flinkApache FlinkFlink Streaming SQLRepository
Image
Flink has most mature support for stream processing, like stream-to-stream and stream-to-table joins, windowed aggregations, watermarks etc. It’s thus the recommended engine for most derivative datasets.
datafusionApache Arrow DataFusionDataFusion SQLRepository
Image
An extremely fast and low-footprint batch processing engine. DataFusion is also embedded into kamu-cli and is used for data ingestion, ad-hoc SQL queries, and SQL console. Despite being a batch-only engine it can still be used in pipelines for simple map/filter/union operations where temporal semantics is not needed.
risingwaveRisingWaveRisingWave SQLRepository
Image
Experimental stream process engine. There are ongoing attempts to add stream processing functionality. DataFusion is also embedded into kamu-cli and is used for executing ad-hoc SQL queries. We are aiming to make data ingest functionality use DataFusion for most cases instead of Spark.

Schema Support

FeaturekamuSparkFlinkDataFusionRisingWave
Basic types✔️✔️✔️✔️✔️
Decimal type✔️✔️✔️**✔️✔️
Nested types✔️*✔️❔***❔***
GIS types✔️*✔️

✔️* - There is currently no way to express nested and GIS data types when declaring root dataset schemas, but you still can use them through pre-processing queries

✔️** - Apache Flink has known issues with Decimal type and currently relies on our patches that have not been upstreamed yet, so stability is not guaranteed FLINK-17804.

❔ - Engine capability exists but requires more integration testing

Operation Types

Note that ODF always operates in event time, this all temporal aggregations and joins have to be supported by the engine in event-time processing mode.

FeatureSparkFlinkDataFusionRisingWave
Filter✔️✔️
Map✔️✔️
Aggregation: Window functions✔️
Aggregation: Tumbling windows✔️
Aggregation: Top-N
Join: Windowed✔️
Join: Temporal Table✔️
GIS extensions

✔️ - supported
✅ - supported and recommended
❌ - not supported
❔ - engine capability exists but requires more integration testing