Skip to content

Commit 4f92fba

Browse files
committed
simplify test code
1 parent 7c719c9 commit 4f92fba

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

benchmarks/src/bin/tpch.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,11 +1054,9 @@ mod tests {
10541054
.with_batch_size(10);
10551055
let mut ctx = ExecutionContext::with_config(config);
10561056

1057-
let tpch_data_path = if let Ok(path) = env::var("TPCH_DATA") {
1058-
path
1059-
} else {
1060-
"./".to_string()
1061-
};
1057+
// set tpch_data_path to dummy value and skip physical plan serde test when TPCH_DATA
1058+
// is not set.
1059+
let tpch_data_path = env::var("TPCH_DATA").unwrap_or("./".to_string());
10621060

10631061
for &table in TABLES {
10641062
let schema = get_schema(table);

0 commit comments

Comments
 (0)