Skip to content

Apache DataFusion SQL Query Engine

ARROW-6660: [Rust] [DataFusion] Minor docs update for 0.15.0 release

Andy Grovea342377a5f18
diff --git a/rust/datafusion/src/lib.rs b/rust/datafusion/src/lib.rs
index f6bbdb2ab8..fb4e5af303 100644
--- a/rust/datafusion/src/lib.rs
+++ b/rust/datafusion/src/lib.rs
@@ -15,8 +15,14 @@
// specific language governing permissions and limitations
// under the License.
-//! DataFusion is a modern distributed compute platform implemented in Rust that uses
-//! Apache Arrow as the memory model
+//! DataFusion is an extensible query execution framework that uses
+//! Apache Arrow as the memory model.
+//!
+//! DataFusion supports both SQL and a Table/DataFrame-style API for building logical query plans
+//! and also provides a query optimizer and execution engine capable of parallel execution
+//! against partitioned data sources (CSV and Parquet) using threads.
+//!
+//! DataFusion currently supports simple projection, selection, and aggregate queries.
#![warn(missing_docs)]
diff --git a/rust/datafusion/src/logicalplan.rs b/rust/datafusion/src/logicalplan.rs
index 3fa9f980b8..87c1694c4b 100644
--- a/rust/datafusion/src/logicalplan.rs
+++ b/rust/datafusion/src/logicalplan.rs
@@ -15,7 +15,11 @@
// specific language governing permissions and limitations
// under the License.
-//! Logical query plan
+//! This module provides a logical query plan enum that can describe queries. Logical query
+//! plans can be created from a SQL statement or built programmatically via the Table API.
+//!
+//! Logical query plans can then be optimized and executed directly, or translated into
+//! physical query plans and executed.
use std::fmt;
use std::sync::Arc;
diff --git a/rust/datafusion/src/optimizer/mod.rs b/rust/datafusion/src/optimizer/mod.rs
index b43fba4d17..e60c7db824 100644
--- a/rust/datafusion/src/optimizer/mod.rs
+++ b/rust/datafusion/src/optimizer/mod.rs
@@ -15,7 +15,8 @@
// specific language governing permissions and limitations
// under the License.
-//! Query optimizer module
+//! This module contains a query optimizer that operates against a logical plan and applies
+//! some simple rules to a logical plan, such as "Projection Push Down" and "Type Coercion".
pub mod optimizer;
pub mod projection_push_down;
diff --git a/rust/datafusion/src/sql/mod.rs b/rust/datafusion/src/sql/mod.rs
index 77a076788c..fb4163924c 100644
--- a/rust/datafusion/src/sql/mod.rs
+++ b/rust/datafusion/src/sql/mod.rs
@@ -15,7 +15,8 @@
// specific language governing permissions and limitations
// under the License.
-//! SQL parser and query planner
+//! This module provides a SQL parser that translates SQL queries into an abstract syntax
+//! tree (AST), and a SQL query planner that creates a logical plan from the AST.
pub mod parser;
pub mod planner;