Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Dandandan/datafusion-tokomak

Experimental optimizer for DataFusion
https://github.com/Dandandan/datafusion-tokomak

Last synced: 2 months ago
JSON representation

Experimental optimizer for DataFusion

Awesome Lists containing this project

README

        

# datafusion-tokomak
Experimental pluggable optimizer for DataFusion using graph rewriting.

The goal is to allow experimenting with the [Egg](https://github.com/egraphs-good/egg) library,
and experiment with a maintainable and aggresive optimization framework.

The optimizer is WIP.

Usage example:

```rust
let mut ctx = ExecutionContext::with_config(
ExecutionConfig::new().add_optimizer_rule(Arc::new(Tokomak::new())),
);

ctx.register_csv("example", "tests/example.csv", CsvReadOptions::new())?;

// create a DataFusion dataframe
let df = ctx
.sql("SELECT price * 0 from example")?;

```