File tree 3 files changed +6
-17
lines changed
3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -362,8 +362,6 @@ impl DataFrame {
362
362
Ok ( Arc :: new ( DataFrame :: new ( self . session_state . clone ( ) , & plan) ) )
363
363
}
364
364
365
- // TODO: add join_using
366
-
367
365
/// Repartition a DataFrame based on a logical partitioning scheme.
368
366
///
369
367
/// ```
@@ -1386,9 +1384,7 @@ mod tests {
1386
1384
1387
1385
let plan = df. explain ( false , false ) ?. collect ( ) . await ?;
1388
1386
// Filters all the way to Parquet
1389
- let formatted = arrow:: util:: pretty:: pretty_format_batches ( & plan)
1390
- . unwrap ( )
1391
- . to_string ( ) ;
1387
+ let formatted = pretty:: pretty_format_batches ( & plan) . unwrap ( ) . to_string ( ) ;
1392
1388
assert ! ( formatted. contains( "predicate=id_min@0 <= 1 AND 1 <= id_max@1" ) ) ;
1393
1389
1394
1390
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -348,11 +348,7 @@ impl ExecutionPlan for HashJoinExec {
348
348
} ) )
349
349
}
350
350
351
- fn fmt_as (
352
- & self ,
353
- t : DisplayFormatType ,
354
- f : & mut std:: fmt:: Formatter ,
355
- ) -> std:: fmt:: Result {
351
+ fn fmt_as ( & self , t : DisplayFormatType , f : & mut fmt:: Formatter ) -> fmt:: Result {
356
352
match t {
357
353
DisplayFormatType :: Default => {
358
354
let display_filter = self . filter . as_ref ( ) . map_or_else (
@@ -1361,7 +1357,7 @@ fn produce_from_matched(
1361
1357
}
1362
1358
JoinSide :: Right => {
1363
1359
let datatype = schema. field ( idx) . data_type ( ) ;
1364
- arrow :: array :: new_null_array ( datatype, num_rows)
1360
+ new_null_array ( datatype, num_rows)
1365
1361
}
1366
1362
} ;
1367
1363
@@ -1376,7 +1372,7 @@ impl HashJoinStream {
1376
1372
fn poll_next_impl (
1377
1373
& mut self ,
1378
1374
cx : & mut std:: task:: Context < ' _ > ,
1379
- ) -> std :: task :: Poll < Option < ArrowResult < RecordBatch > > > {
1375
+ ) -> Poll < Option < ArrowResult < RecordBatch > > > {
1380
1376
let left_data = match ready ! ( self . left_fut. get( cx) ) {
1381
1377
Ok ( left_data) => left_data,
1382
1378
Err ( e) => return Poll :: Ready ( Some ( Err ( e) ) ) ,
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ use crate::{
46
46
/// Index into the data that has been returned so far
47
47
#[ derive( Debug , Default , Clone ) ]
48
48
pub struct BatchIndex {
49
- inner : std :: sync :: Arc < std:: sync:: Mutex < usize > > ,
49
+ inner : Arc < std:: sync:: Mutex < usize > > ,
50
50
}
51
51
52
52
impl BatchIndex {
@@ -91,10 +91,7 @@ impl TestStream {
91
91
impl Stream for TestStream {
92
92
type Item = ArrowResult < RecordBatch > ;
93
93
94
- fn poll_next (
95
- self : std:: pin:: Pin < & mut Self > ,
96
- _: & mut Context < ' _ > ,
97
- ) -> Poll < Option < Self :: Item > > {
94
+ fn poll_next ( self : Pin < & mut Self > , _: & mut Context < ' _ > ) -> Poll < Option < Self :: Item > > {
98
95
let next_batch = self . index . value ( ) ;
99
96
100
97
Poll :: Ready ( if next_batch < self . data . len ( ) {
You can’t perform that action at this time.
0 commit comments