Apache DataFusion SQL Query Engine
ARROW-4927: [Rust] Update top level README to describe current functionality
Jorge C. Leitao36dbba4963e0
diff --git a/rust/README.md b/rust/README.mdindex b228eadc34..9265d2f235 100644--- a/rust/README.md+++ b/rust/README.md@@ -21,17 +21,38 @@[](https://codecov.io/gh/apache/arrow?branch=master)-## The Rust implementation of Arrow consists of the following crates+Welcome to the implementation of Arrow, the popular in-memory columnar format, in Rust.++This part of the Arrow project is divided in 4 main components:| Crate | Description | Documentation ||-----------|-------------|---------------|-|Arrow | Core functionality (memory layout, array builders, low level computations) | [(README)](arrow/README.md) |-|Parquet | Parquet support | [(README)](parquet/README.md) |-|DataFusion | In-memory query engine with SQL support | [(README)](datafusion/README.md) |+|Arrow | Core functionality (memory layout, arrays, low level computations) | [(README)](arrow/README.md) |+|Parquet | Parquet support | [(README)](parquet/README.md) |+|Arrow-flight | Arrow data between processes | [(README)](arrow-flight/README.md) |+|DataFusion | In-memory query engine with SQL support | [(README)](datafusion/README.md) |++Independently, they support a vast array of functionality for in-memory computations.++Together, they allow users to write an SQL query or a `DataFrame` (using `datafusion` crate), run it against a parquet file (using `parquet` crate), evaluate it in-memory using Arrow's columnar format (using the `arrow` crate), and send to another process (using `arrow-flight` crate).++Generally speaking, the `arrow` crate offers the functionality to develop code that uses Arrow arrays, and `datafusion` offers most operations typically found in SQL, with the notable exceptions of:++* `join`+* `window` functions++There are too many features to enumerate here, but some notable mentions:-## Prerequisites+* `Arrow` implements all formats in the specification except certain dictionaries+* `Arrow` supports SIMD operations to some of its vertical operations+* `DataFusion` supports `async` execution+* `DataFusion` supports user-defined functions, aggregates, and whole execution nodes-Before running tests and examples it is necessary to set up the local development environment.+You can find more details about each crate on their respective READMEs.++## Developer's guide to Arrow Rust++Before running tests and examples, it is necessary to set up the local development environment.### Git Submodules@@ -45,17 +66,25 @@ git submodule update --initThis populates data in two git submodules:-- `cpp/submodules/parquet_testing/data` (sourced from https://github.com/apache/parquet-testing.git)-- `testing` (sourced from https://github.com/apache/arrow-testing)+- `../cpp/submodules/parquet_testing/data` (sourced from https://github.com/apache/parquet-testing.git)+- `../testing` (sourced from https://github.com/apache/arrow-testing)++To run the tests of the whole crate, create two new environment variables to point to these directories as follows:++```bash+export PARQUET_TEST_DATA=../cpp/submodules/parquet-testing/data+export ARROW_TEST_DATA=../testing/data+```-Create two new environment variables to point to these directories as follows:+To run the tests of an individual crate within the project (e.g. in `datafusion/`), adjust the path+accordingly:```bash-export PARQUET_TEST_DATA=/path/to/arrow/cpp/submodules/parquet-testing/data-export ARROW_TEST_DATA=/path/to/arrow/testing/data/+export PARQUET_TEST_DATA=../../cpp/submodules/parquet-testing/data+export ARROW_TEST_DATA=../../testing/data```-It is now possible to run `cargo test` as usual.+from here on, this is a pure Rust project and `cargo` can be used to run tests, benchmarks, docs and examples as usual.## Code Formatting