File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,14 +112,14 @@ pub(crate) struct DeltaOut {
112112}
113113
114114impl DeltaOut {
115- async fn deltasetup ( schema : FixedSchema ) -> Result < DeltaTable , DeltaTableError > {
116- let table_uri = std:: env:: var ( "TABLE_URI" ) . map_err ( |e| DeltaTableError :: GenericError {
117- source : Box :: new ( e) ,
118- } ) ?;
115+ async fn deltasetup ( schema : FixedSchema , out : PathBuf ) -> Result < DeltaTable , DeltaTableError > {
116+ // let table_uri = std::env::var("TABLE_URI").map_err(|e| DeltaTableError::GenericError {
117+ // source: Box::new(e),
118+ // })?;
119119
120- info ! ( "Using the location of: {:?}" , table_uri ) ;
120+ info ! ( "Using the location of: {:?}" , out ) ;
121121
122- let table_path = deltalake:: Path :: parse ( & table_uri ) . unwrap ( ) ;
122+ let table_path = deltalake:: Path :: parse ( out . to_str ( ) . unwrap ( ) ) . unwrap ( ) ;
123123
124124 let maybe_table = deltalake:: open_table ( & table_path) . await ;
125125 let mut table = match maybe_table {
@@ -145,7 +145,7 @@ impl DeltaOut {
145145 fixed_schema : FixedSchema ,
146146 outfile : PathBuf ,
147147 ) -> ( Result < Stats > ) {
148- let mut table = Self :: deltasetup ( fixed_schema) . await . unwrap ( ) ;
148+ let mut table = Self :: deltasetup ( fixed_schema, outfile ) . await . unwrap ( ) ;
149149
150150 let writer_properties = WriterProperties :: builder ( )
151151 . set_compression ( Compression :: ZSTD ( ZstdLevel :: try_new ( 3 ) . unwrap ( ) ) )
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ impl<'a> Slicer<'a> for ResidualSlicer<'a> {
139139 parse_duration_tot += parse_duration;
140140 builder_write_duration_tot += builder_write_duration;
141141 }
142- info ! ( "about to shudown converter..." ) ;
142+ info ! ( "about to shutdown converter..." ) ;
143143
144144 converter. shutdown ( & rt, threaded_writer. 1 ) ;
145145 info ! ( "converter has been shutdown" ) ;
You can’t perform that action at this time.
0 commit comments