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 @@ -2676,13 +2676,15 @@ impl TableScan {
2676
2676
///
2677
2677
/// ```rust
2678
2678
/// use datafusion_expr::{col, SortExpr};
2679
- /// # use datafusion_expr::logical_plan::TableScan;
2679
+ /// # use datafusion_expr::logical_plan::{ TableScan, builder::table_source} ;
2680
2680
/// # use std::sync::Arc;
2681
- /// # use datafusion_common::TableReference;
2681
+ /// # use datafusion_common::{TableReference, DFSchema};
2682
+ /// # use arrow::datatypes::{Schema, Field, DataType};
2682
2683
///
2683
2684
/// // Create a table scan with preferred ordering by column 'a' ascending
2684
2685
/// # 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);
2686
2688
/// # let projection = None;
2687
2689
/// # let projected_schema = Arc::new(datafusion_common::DFSchema::empty());
2688
2690
/// # let filters = vec![];
You can’t perform that action at this time.
0 commit comments