From 5a9adcfda89dc9199827faac25c7256f6aec84e8 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Wed, 20 Sep 2023 11:34:00 +0800 Subject: [PATCH] replace windows path chars Signed-off-by: Ruihang Xia --- tests-integration/src/tests/instance_test.rs | 7 ++++++- tests-integration/src/tests/test_util.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests-integration/src/tests/instance_test.rs b/tests-integration/src/tests/instance_test.rs index 2da472ae9d..54c2c3c543 100644 --- a/tests-integration/src/tests/instance_test.rs +++ b/tests-integration/src/tests/instance_test.rs @@ -575,7 +575,12 @@ async fn test_execute_external_create_infer_format(instance: Arc String { // We need unix style path even in the Windows, because the path is used in object-store, must // be delimited with '/'. Inside the object-store, it will be converted to file system needed // path in the end. - let p = p.replace('\\', "/"); + let p = p.replace(':', "").replace('\\', "/"); // Prepend a '/' to indicate it's a file system path when parsed as object-store url in Windows. format!("/{p}")