File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
datafusion/expr/src/logical_plan Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2703,13 +2703,15 @@ impl TableScan {
2703
2703
///
2704
2704
/// ```rust
2705
2705
/// use datafusion_expr::{col, SortExpr};
2706
- /// # use datafusion_expr::logical_plan::TableScan;
2706
+ /// # use datafusion_expr::logical_plan::{ TableScan, builder::table_source} ;
2707
2707
/// # use std::sync::Arc;
2708
- /// # use datafusion_common::TableReference;
2708
+ /// # use datafusion_common::{TableReference, DFSchema};
2709
+ /// # use arrow::datatypes::{Schema, Field, DataType};
2709
2710
///
2710
2711
/// // Create a table scan with preferred ordering by column 'a' ascending
2711
2712
/// # 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);
2713
2715
/// # let projection = None;
2714
2716
/// # let projected_schema = Arc::new(datafusion_common::DFSchema::empty());
2715
2717
/// # let filters = vec![];
You can’t perform that action at this time.
0 commit comments