Skip to content

Commit 3353b06

Browse files
committed
Fix
1 parent 8ba7fa7 commit 3353b06

File tree

1 file changed

+5
-3
lines changed
  • datafusion/expr/src/logical_plan

1 file changed

+5
-3
lines changed

datafusion/expr/src/logical_plan/plan.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2703,13 +2703,15 @@ impl TableScan {
27032703
///
27042704
/// ```rust
27052705
/// use datafusion_expr::{col, SortExpr};
2706-
/// # use datafusion_expr::logical_plan::TableScan;
2706+
/// # use datafusion_expr::logical_plan::{TableScan, builder::table_source};
27072707
/// # use std::sync::Arc;
2708-
/// # use datafusion_common::TableReference;
2708+
/// # use datafusion_common::{TableReference, DFSchema};
2709+
/// # use arrow::datatypes::{Schema, Field, DataType};
27092710
///
27102711
/// // Create a table scan with preferred ordering by column 'a' ascending
27112712
/// # let table_name = TableReference::bare("test");
2712-
/// # let source = Arc::new(datafusion_expr::test::table_source(vec![]));
2713+
/// # let schema = Schema::new(vec![Field::new("a", DataType::Int32, false)]);
2714+
/// # let source = table_source(&schema);
27132715
/// # let projection = None;
27142716
/// # let projected_schema = Arc::new(datafusion_common::DFSchema::empty());
27152717
/// # let filters = vec![];

0 commit comments

Comments
 (0)