Skip to content

Commit 1108dfc

Browse files
author
Rickard Lundin
committed
please wok
1 parent c19ae12 commit 1108dfc

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/chunked/recordbatch_output.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ pub(crate) struct DeltaOut {
112112
}
113113

114114
impl 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()))

src/chunked/residual_slicer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)