@@ -22,16 +22,15 @@ use arrow::{
22
22
util:: display:: array_value_to_string,
23
23
} ;
24
24
25
- use datafusion:: datasource:: TableProvider ;
26
25
use datafusion:: error:: Result ;
27
26
use datafusion:: logical_expr:: { Aggregate , LogicalPlan , TableScan } ;
27
+ use datafusion:: physical_plan:: collect;
28
28
use datafusion:: physical_plan:: metrics:: MetricValue ;
29
29
use datafusion:: physical_plan:: ExecutionPlan ;
30
30
use datafusion:: physical_plan:: ExecutionPlanVisitor ;
31
31
use datafusion:: prelude:: * ;
32
32
use datafusion:: test_util;
33
33
use datafusion:: { assert_batches_eq, assert_batches_sorted_eq} ;
34
- use datafusion:: { datasource:: MemTable , physical_plan:: collect} ;
35
34
use datafusion:: { execution:: context:: SessionContext , physical_plan:: displayable} ;
36
35
use datafusion_common:: { assert_contains, assert_not_contains} ;
37
36
use object_store:: path:: Path ;
@@ -322,21 +321,6 @@ async fn register_alltypes_parquet(ctx: &SessionContext) {
322
321
. unwrap ( ) ;
323
322
}
324
323
325
- /// Return a new table provider that has a single Int32 column with
326
- /// values between `seq_start` and `seq_end`
327
- pub fn table_with_sequence (
328
- seq_start : i32 ,
329
- seq_end : i32 ,
330
- ) -> Result < Arc < dyn TableProvider > > {
331
- let schema = Arc :: new ( Schema :: new ( vec ! [ Field :: new( "i" , DataType :: Int32 , true ) ] ) ) ;
332
- let arr = Arc :: new ( Int32Array :: from ( ( seq_start..=seq_end) . collect :: < Vec < _ > > ( ) ) ) ;
333
- let partitions = vec ! [ vec![ RecordBatch :: try_new(
334
- schema. clone( ) ,
335
- vec![ arr as ArrayRef ] ,
336
- ) ?] ] ;
337
- Ok ( Arc :: new ( MemTable :: try_new ( schema, partitions) ?) )
338
- }
339
-
340
324
pub struct ExplainNormalizer {
341
325
replacements : Vec < ( String , String ) > ,
342
326
}
0 commit comments