Skip to content

Commit

Permalink
Fix benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Jan 4, 2023
1 parent e646bfe commit 0247e39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/src/bin/tpch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ mod tests {
#[cfg(feature = "ci")]
mod ci {
use super::*;
use arrow::datatypes::{DataType, Field};
use datafusion_proto::bytes::{logical_plan_from_bytes, logical_plan_to_bytes};

async fn serde_round_trip(query: usize) -> Result<()> {
Expand Down Expand Up @@ -1213,7 +1214,7 @@ mod ci {
}

fn get_tpch_data_path() -> Result<String> {
let path = std::env::var("TPCH_DATA").unwrap_or("benchmarks/data".to_string());
let path = std::env::var("TPCH_DATA").unwrap_or_else(|| "benchmarks/data".to_string());
if !Path::new(&path).exists() {
return Err(DataFusionError::Execution(format!(
"Benchmark data not found (set TPCH_DATA env var to override): {}",
Expand Down

0 comments on commit 0247e39

Please sign in to comment.