Skip to content

Commit c84cf55

Browse files
committed
Fix
1 parent 9930c31 commit c84cf55

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
@@ -2676,13 +2676,15 @@ impl TableScan {
26762676
///
26772677
/// ```rust
26782678
/// use datafusion_expr::{col, SortExpr};
2679-
/// # use datafusion_expr::logical_plan::TableScan;
2679+
/// # use datafusion_expr::logical_plan::{TableScan, builder::table_source};
26802680
/// # use std::sync::Arc;
2681-
/// # use datafusion_common::TableReference;
2681+
/// # use datafusion_common::{TableReference, DFSchema};
2682+
/// # use arrow::datatypes::{Schema, Field, DataType};
26822683
///
26832684
/// // Create a table scan with preferred ordering by column 'a' ascending
26842685
/// # let table_name = TableReference::bare("test");
2685-
/// # let source = Arc::new(datafusion_expr::test::table_source(vec![]));
2686+
/// # let schema = Schema::new(vec![Field::new("a", DataType::Int32, false)]);
2687+
/// # let source = table_source(&schema);
26862688
/// # let projection = None;
26872689
/// # let projected_schema = Arc::new(datafusion_common::DFSchema::empty());
26882690
/// # let filters = vec![];

0 commit comments

Comments
 (0)