@@ -33,23 +33,23 @@ use log::info;
3333#[ cfg( feature = "rayon" ) ]
3434use parquet:: arrow:: ArrowWriter ;
3535
36+ use arrow:: datatypes:: SchemaRef ;
37+ use atomic_counter:: ConsistentCounter ;
3638#[ cfg( feature = "rayon" ) ]
3739use std:: fs;
3840#[ cfg( feature = "rayon" ) ]
3941use std:: fs:: File ;
4042use std:: path:: PathBuf ;
41- use arrow:: datatypes:: SchemaRef ;
42- use atomic_counter:: ConsistentCounter ;
4343
4444#[ cfg( feature = "rayon" ) ]
4545use crate :: chunked:: arrow_converter:: { MasterBuilders , Slice2Arrow } ;
4646#[ cfg( feature = "rayon" ) ]
4747use crate :: chunked:: residual_slicer:: ResidualSlicer ;
4848#[ cfg( feature = "rayon" ) ]
4949use crate :: chunked:: self_converter:: SampleSliceAggregator ;
50+ use crate :: chunked:: threaded_file_output:: output_factory;
5051#[ cfg( feature = "rayon" ) ]
5152use crate :: chunked:: { find_last_nl, line_break_len_cr, Converter as ChunkedConverter , Slicer } ;
52- use crate :: chunked:: threaded_file_output:: output_factory;
5353use crate :: converter:: Converter ;
5454use crate :: error:: Result ;
5555use crate :: mocker:: Mocker ;
@@ -107,7 +107,6 @@ pub struct Cli {
107107 n_threads : usize ,
108108}
109109
110-
111110#[ derive( Subcommand ) ]
112111enum Commands {
113112 /// Convert a fixed-length file (.flf) to parquet.
@@ -294,14 +293,18 @@ impl Cli {
294293 schema. to_path_buf ( ) ,
295294 n_threads as i16 ,
296295 ) ;
297- let sc= master_builders. schema_factory ( ) ;
298-
296+ let sc = master_builders. schema_factory ( ) ;
297+
299298 let s2a: Box < Slice2Arrow > = Box :: new ( Slice2Arrow {
300299 fn_line_break : find_last_nl,
301300 fn_line_break_len : line_break_len_cr,
302301 masterbuilders : master_builders,
303302 consistent_counter : ConsistentCounter :: new ( 0 ) ,
304- threaded_write : output_factory ( self . target . clone ( ) , sc , out_file. clone ( ) . to_path_buf ( ) ) ,
303+ threaded_write : output_factory (
304+ self . target . clone ( ) ,
305+ sc,
306+ out_file. clone ( ) . to_path_buf ( ) ,
307+ ) ,
305308 } ) ;
306309 s2a
307310 }
0 commit comments