You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ne...@apache.org on 2022/02/10 07:58:15 UTC

[arrow-rs] branch master updated: fix failing csv_writer bench (#1293)

This is an automated email from the ASF dual-hosted git repository.

nevime pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 39f3f71  fix failing csv_writer bench (#1293)
39f3f71 is described below

commit 39f3f711876ff113545b1a2d7023f66de77bb731
Author: Andy Grove <an...@gmail.com>
AuthorDate: Thu Feb 10 00:58:08 2022 -0700

    fix failing csv_writer bench (#1293)
---
 arrow/benches/csv_writer.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arrow/benches/csv_writer.rs b/arrow/benches/csv_writer.rs
index 62c5da9..3ecf514 100644
--- a/arrow/benches/csv_writer.rs
+++ b/arrow/benches/csv_writer.rs
@@ -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;
 
@@ -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];