Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-k-cameron committed Jun 28, 2023
1 parent 20970f0 commit 2d0f9bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions datafusion/core/src/datasource/file_format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,11 @@ pub(crate) mod test_util {
multi_page: bool,
) -> Result<(Vec<ObjectMeta>, Vec<NamedTempFile>)> {
// Each batch writes to their own file
let mut idx = 0;
let pathbuf = PathBuf::from_str("/tmp/").unwrap();
let files: Vec<_> = batches
.into_iter()
.map(|batch| {
idx += 1;
let mut output = NamedTempFile::new_in(pathbuf.join(format!("file{idx}"))).expect("creating temp file");
let mut output = NamedTempFile::new_in(pathbuf.clone()).expect("creating temp file");

let builder = WriterProperties::builder();
let props = if multi_page {
Expand Down

0 comments on commit 2d0f9bb

Please sign in to comment.