We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d428b commit 96c5146Copy full SHA for 96c5146
src/test_utils/sqllogictest.rs
@@ -42,7 +42,7 @@ impl DatafusionDistributedDB {
42
/// Sanitize file paths in EXPLAIN output to make tests portable across machines
43
/// Ex. "Users/jay/code/datafusion-distributed/....../file-0000.parquet" -> "datafusion-distributed/....../file-0000.parquet"
44
fn sanitize_file_paths(plan_str: &str) -> String {
45
- let re = Regex::new(r"(?m)[^,\[\s]*?/datafusion-distributed/").unwrap();
+ let re = Regex::new(r"(?m)(^|[\[,]\s*)(?:[^,\[\s]*/)*datafusion-distributed/").unwrap();
46
re.replace_all(plan_str, "datafusion-distributed/")
47
.to_string()
48
}
0 commit comments