Skip to content

Commit

Permalink
fix failing csv_writer bench (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove authored Feb 10, 2022
1 parent c064d53 commit 39f3f71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arrow/benches/csv_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use arrow::array::*;
use arrow::csv;
use arrow::datatypes::*;
use arrow::record_batch::RecordBatch;
use std::env;
use std::fs::File;
use std::sync::Arc;

Expand Down Expand Up @@ -56,7 +57,8 @@ fn criterion_benchmark(c: &mut Criterion) {
vec![Arc::new(c1), Arc::new(c2), Arc::new(c3), Arc::new(c4)],
)
.unwrap();
let file = File::create("target/bench_write_csv.csv").unwrap();
let path = env::temp_dir().join("bench_write_csv.csv");
let file = File::create(path).unwrap();
let mut writer = csv::Writer::new(file);
let batches = vec![&b, &b, &b, &b, &b, &b, &b, &b, &b, &b, &b];

Expand Down

0 comments on commit 39f3f71

Please sign in to comment.