Apache DataFusion SQL Query Engine
Minor: improve some docstrings about pruning (#3041)
Andrew Lamb0b3130bc77fe
diff --git a/datafusion/core/src/physical_optimizer/pruning.rs b/datafusion/core/src/physical_optimizer/pruning.rsindex b1242b1503..299a2297ca 100644--- a/datafusion/core/src/physical_optimizer/pruning.rs+++ b/datafusion/core/src/physical_optimizer/pruning.rs@@ -20,13 +20,13 @@//! significant performance improvements by avoiding the need//! to evaluate a plan on entire containers (e.g. an entire file)//!-//! For example, it is used to prune (skip) row groups while reading-//! parquet files if it can be determined from the predicate that-//! nothing in the row group can match.+//! For example, DataFusion uses this code to prune (skip) row groups+//! while reading parquet files if it can be determined from the+//! predicate that nothing in the row group can match.//!-//! This code is currently specific to Parquet, but soon (TM), via-//! <https://github.com/apache/arrow-datafusion/issues/363> it will-//! be genericized.+//! This code can also be used by other systems to prune other+//! entities (e.g. entire files) if the statistics are known via some+//! other source (e.g. a catalog)use std::convert::TryFrom;use std::{collections::HashSet, sync::Arc};diff --git a/datafusion/core/tests/parquet_pruning.rs b/datafusion/core/tests/parquet_pruning.rsindex 820027b210..f91d6e170d 100644--- a/datafusion/core/tests/parquet_pruning.rs+++ b/datafusion/core/tests/parquet_pruning.rs@@ -15,8 +15,9 @@// specific language governing permissions and limitations// under the License.-// This file contains an end to end test of parquet pruning. It writes-// data into a parquet file and then+//! This file contains an end to end test of parquet pruning. It writes+//! data into a parquet file and then verifies row groups are pruned as+//! expected.use std::sync::Arc;use arrow::array::Decimal128Array;