Skip to content

Apache DataFusion SQL Query Engine

Remove vestigal `datafusion-docs` module compilation (#12081)

Andrew Lambeca71c4cb144
diff --git a/Cargo.toml b/Cargo.toml
index ae344a46a1..d82443f5d1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,7 +45,6 @@ members = [
"datafusion/substrait",
"datafusion/wasmtest",
"datafusion-examples",
- "docs",
"test-utils",
"benchmarks",
]
diff --git a/docs/Cargo.toml b/docs/Cargo.toml
deleted file mode 100644
index 14398c8415..0000000000
--- a/docs/Cargo.toml
+++ /dev/null
@@ -1,35 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-[package]
-name = "datafusion-docs-tests"
-description = "DataFusion Documentation Tests"
-publish = false
-version = { workspace = true }
-edition = { workspace = true }
-readme = { workspace = true }
-homepage = { workspace = true }
-repository = { workspace = true }
-license = { workspace = true }
-authors = { workspace = true }
-rust-version = { workspace = true }
-
-[lints]
-workspace = true
-
-[dependencies]
-datafusion = { workspace = true }
diff --git a/docs/src/lib.rs b/docs/src/lib.rs
deleted file mode 100644
index f73132468e..0000000000
--- a/docs/src/lib.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-#[cfg(test)]
-mod library_logical_plan;
diff --git a/docs/src/library_logical_plan.rs b/docs/src/library_logical_plan.rs
deleted file mode 100644
index 3550039415..0000000000
--- a/docs/src/library_logical_plan.rs
+++ /dev/null
@@ -1,78 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-use datafusion::arrow::datatypes::{DataType, Field, Schema, SchemaRef};
-use datafusion::error::Result;
-use datafusion::logical_expr::builder::LogicalTableSource;
-use datafusion::logical_expr::{Filter, LogicalPlan, LogicalPlanBuilder, TableScan};
-use datafusion::prelude::*;
-use std::sync::Arc;
-
-#[test]
-fn plan_1() -> Result<()> {
- // create a logical table source
- let schema = Schema::new(vec![
- Field::new("id", DataType::Int32, true),
- Field::new("name", DataType::Utf8, true),
- ]);
- let table_source = LogicalTableSource::new(SchemaRef::new(schema));
-
- // create a TableScan plan
- let projection = None; // optional projection
- let filters = vec![]; // optional filters to push down
- let fetch = None; // optional LIMIT
- let table_scan = LogicalPlan::TableScan(TableScan::try_new(
- "person",
- Arc::new(table_source),
- projection,
- filters,
- fetch,
- )?);
-
- // create a Filter plan that evaluates `id > 500` and wraps the TableScan
- let filter_expr = col("id").gt(lit(500));
- let plan = LogicalPlan::Filter(Filter::try_new(filter_expr, Arc::new(table_scan))?);
-
- // print the plan
- println!("{}", plan.display_indent_schema());
-
- Ok(())
-}
-
-#[test]
-fn plan_builder_1() -> Result<()> {
- // create a logical table source
- let schema = Schema::new(vec![
- Field::new("id", DataType::Int32, true),
- Field::new("name", DataType::Utf8, true),
- ]);
- let table_source = LogicalTableSource::new(SchemaRef::new(schema));
-
- // optional projection
- let projection = None;
-
- // create a LogicalPlanBuilder for a table scan
- let builder = LogicalPlanBuilder::scan("person", Arc::new(table_source), projection)?;
-
- // perform a filter that evaluates `id > 500`, and build the plan
- let plan = builder.filter(col("id").gt(lit(500)))?.build()?;
-
- // print the plan
- println!("{}", plan.display_indent_schema());
-
- Ok(())
-}