From 716e89b82a8280a517be52a74c8a265c88f5f044 Mon Sep 17 00:00:00 2001 From: nuno-faria Date: Sat, 23 May 2026 18:10:34 +0100 Subject: [PATCH] minor: Make union_with_mix_of_presorted_and_explicitly_resorted_inputs_impl cross platform --- datafusion/core/tests/dataframe/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datafusion/core/tests/dataframe/mod.rs b/datafusion/core/tests/dataframe/mod.rs index e55a373adab9f..19d5ecb842297 100644 --- a/datafusion/core/tests/dataframe/mod.rs +++ b/datafusion/core/tests/dataframe/mod.rs @@ -3345,7 +3345,11 @@ async fn union_with_mix_of_presorted_and_explicitly_resorted_inputs_impl( // To be able to remove user specific paths from the plan, for stable assertions let testdata_clean = Path::new(&testdata).canonicalize()?.display().to_string(); - let testdata_clean = testdata_clean.strip_prefix("/").unwrap_or(&testdata_clean); + let testdata_clean = testdata_clean.replace("\\", "/"); + let testdata_clean = testdata_clean + .strip_prefix("//?/") + .or_else(|| testdata_clean.strip_prefix("/")) + .unwrap_or(&testdata_clean); // Use displayable() rather than explain().collect() to avoid table formatting issues. We need // to replace machine-specific paths with variable lengths, which breaks table alignment and