Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmturner committed Jan 9, 2025
1 parent ace08c7 commit 31dae00
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,29 +536,6 @@ impl AnyWriter {
}
}

// fn path_to_writer(path: &Path, schema: SchemaRef) -> Result<Box<dyn RecordBatchWriter>> {
// if let Some(extension) = path.extension() {
// if let Some(e) = extension.to_ascii_lowercase().to_str() {
// let file = std::fs::File::create(path)?;
// return match e {
// "csv" => Ok(Box::new(csv::writer::Writer::new(file))),
// "json" => Ok(Box::new(json::writer::LineDelimitedWriter::new(file))),
// "parquet" => {
// let props = WriterProperties::default();
// let writer = ArrowWriter::try_new(file, schema, Some(props))?;
// Ok(Box::new(writer))
// }
// _ => {
// return Err(eyre!(
// "Only 'csv', 'parquet', and 'json' file types can be output"
// ))
// }
// };
// }
// }
// Err(eyre!("Unable to parse extension"))
// }

fn path_to_writer(path: &Path, schema: SchemaRef) -> Result<AnyWriter> {
if let Some(extension) = path.extension() {
if let Some(e) = extension.to_ascii_lowercase().to_str() {
Expand Down

0 comments on commit 31dae00

Please sign in to comment.