Skip to content

Apache DataFusion SQL Query Engine

create all needed folders in advance (#7105)

Miklos Szots91d780674c65
diff --git a/benchmarks/src/tpch/convert.rs b/benchmarks/src/tpch/convert.rs
index e076097ad7..c65ced4c7b 100644
--- a/benchmarks/src/tpch/convert.rs
+++ b/benchmarks/src/tpch/convert.rs
@@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.
+use std::fs;
use std::path::{Path, PathBuf};
use std::time::Instant;
@@ -102,7 +103,7 @@ impl ConvertOpt {
let output_path = output_root_path.join(table);
let output_path = output_path.to_str().unwrap().to_owned();
-
+ fs::create_dir_all(&output_path)?;
println!(
"Converting '{}' to {} files in directory '{}'",
&input_path, self.file_format, &output_path