From 3c54434d4e47330224ba005b735afc593cbaf6e5 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Fri, 25 Oct 2024 18:23:45 +0800 Subject: [PATCH] Revert "Try make sure location always end with /" This reverts commit dc7eea836a9de9bd90f7398eb7d7b9b54e988ff0. --- src/query/storages/hive/hive/src/converters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/storages/hive/hive/src/converters.rs b/src/query/storages/hive/hive/src/converters.rs index 9e38aabee6f6..0410a1ced086 100644 --- a/src/query/storages/hive/hive/src/converters.rs +++ b/src/query/storages/hive/hive/src/converters.rs @@ -78,7 +78,7 @@ pub fn try_into_table_info( storage .location .as_ref() - .map(|location| format!("{}/", location.trim_end_matches('/'))) + .map(|location| location.to_string()) } else { None };