DataFusion is a distributed data processing platform implemented in Rust. It is very much inspired by Apache Spark and has a similar programming style through the use of DataFrames and SQL.
DataFusion can also be used as a crate dependency in your project if you want the ability to perform SQL queries and DataFrame style data manipulation in-process.
The project home page is now at https://datafusion.rs
It is currently possible to use DataFusion as a crate dependency to execute SQL and DataFrame operations against data in-process and it is also possible to deploy DataFusion as a distributed data processing platform (but only with a single worker so far).
Both of these examples run a trivial query against a trivial CSV file using a single thread.
It is possible to start a cluster of worker nodes and use a SQL console to execute queries against the cluster. There must be a running etcd cluster for the workers to register with.
bash
cargo run --bin worker -- --bind 0.0.0.0:8080 --etcd http://127.0.0.1:2379
The worker should produce output similar to the following:
``` Worker 8987a3f3-71e1-5cca-aadf-bc165f528fac listening on 0.0.0.0:8080 and serving content from ./src/bin/worker/
```
bash
cargo run --bin console -- --etcd http://127.0.0.1:2379
``` DataFusion Console $ CREATE EXTERNAL TABLE ukcities (name VARCHAR(100) NOT NULL, lat DOUBLE NOT NULL, lng DOUBLE NOT NULL) Executing: CREATE EXTERNAL TABLE ukcities (name VARCHAR(100) NOT NULL, lat DOUBLE NOT NULL, lng DOUBLE NOT NULL)
$ SELECT name, lat, lng FROM ukcities WHERE lat < 51 Executing: SELECT name, lat, lng FROM ukcities WHERE lat < 51 Eastbourne, East Sussex, UK,50.768036,0.290472 Weymouth, Dorset, UK,50.614429,-2.457621 Bournemouth, UK,50.720806,-1.904755 Hastings, East Sussex, UK,50.854259,0.573453 Uckfield, East Sussex, UK,50.967941,0.085831 Worthing, West Sussex, UK,50.825024,-0.383835 Plymouth, UK,50.376289,-4.143841
Query executed in 0.005250537 seconds ```
I've started defining milestones and issues in github issues, but the current priorities are.
Contributers are welcome! Please see CONTRIBUTING.md for details.