Skip to content

Commit 96c5146

Browse files
try
1 parent 35d428b commit 96c5146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test_utils/sqllogictest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl DatafusionDistributedDB {
4242
/// Sanitize file paths in EXPLAIN output to make tests portable across machines
4343
/// Ex. "Users/jay/code/datafusion-distributed/....../file-0000.parquet" -> "datafusion-distributed/....../file-0000.parquet"
4444
fn sanitize_file_paths(plan_str: &str) -> String {
45-
let re = Regex::new(r"(?m)[^,\[\s]*?/datafusion-distributed/").unwrap();
45+
let re = Regex::new(r"(?m)(^|[\[,]\s*)(?:[^,\[\s]*/)*datafusion-distributed/").unwrap();
4646
re.replace_all(plan_str, "datafusion-distributed/")
4747
.to_string()
4848
}

0 commit comments

Comments
 (0)