Skip to content

Commit 350c61b

Browse files
authored
refactor(examples): remove redundant call to create directory (#16825)
1 parent 9d6a443 commit 350c61b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

datafusion-examples/examples/parquet_embedded_index.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ use datafusion::parquet::file::reader::{FileReader, SerializedFileReader};
130130
use datafusion::physical_plan::ExecutionPlan;
131131
use datafusion::prelude::*;
132132
use datafusion::scalar::ScalarValue;
133-
use std::fs::{create_dir_all, read_dir, File};
133+
use std::fs::{read_dir, File};
134134
use std::io::{Read, Seek, SeekFrom, Write};
135135
use std::path::{Path, PathBuf};
136136
use std::sync::Arc;
@@ -456,7 +456,6 @@ async fn main() -> Result<()> {
456456
// 1. Create temp dir and write 3 Parquet files with different category sets
457457
let tmp = TempDir::new()?;
458458
let dir = tmp.path();
459-
create_dir_all(dir)?;
460459
write_file_with_index(&dir.join("a.parquet"), &["foo", "bar", "foo"])?;
461460
write_file_with_index(&dir.join("b.parquet"), &["baz", "qux"])?;
462461
write_file_with_index(&dir.join("c.parquet"), &["foo", "quux", "quux"])?;

0 commit comments

Comments
 (0)