Skip to content

Apache DataFusion SQL Query Engine

fix tpc-h parquet setting to respect global options (#12405)

Xiangpeng Hao29babce95e69
diff --git a/benchmarks/src/tpch/run.rs b/benchmarks/src/tpch/run.rs
index ebc5ac0dbd..d79eb65649 100644
--- a/benchmarks/src/tpch/run.rs
+++ b/benchmarks/src/tpch/run.rs
@@ -268,7 +268,8 @@ impl RunOpt {
}
"parquet" => {
let path = format!("{path}/{table}");
- let format = ParquetFormat::default().with_enable_pruning(true);
+ let format = ParquetFormat::default()
+ .with_options(ctx.state().table_options().parquet.clone());
(Arc::new(format), path, DEFAULT_PARQUET_EXTENSION)
}