Skip to content

Commit 1719da8

Browse files
committed
refactor: remove meaningless debug messages
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
1 parent f835e3c commit 1719da8

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/common/storage/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub struct StorageHttpConfig {
259259
pub paths: Vec<String>,
260260
}
261261

262-
pub const STORAGE_IPFS_DEFAULT_ENDPOINT: &str = "https://ipfs.filebase.io";
262+
pub const STORAGE_IPFS_DEFAULT_ENDPOINT: &str = "https://ipfs.io";
263263
/// Config for IPFS storage backend
264264
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
265265
pub struct StorageIpfsConfig {

src/query/service/src/interpreters/interpreter_copy_v2.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::collections::HashSet;
21
// Copyright 2022 Datafuse Labs.
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ use std::collections::HashSet;
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
14+
use std::collections::HashSet;
1515
use std::path::Path;
1616
use std::sync::Arc;
1717

@@ -65,8 +65,6 @@ impl CopyInterpreterV2 {
6565
match &from.source_info {
6666
SourceInfo::StageSource(table_info) => {
6767
let path = &table_info.path;
68-
tracing::info!("path is :{}", path);
69-
7068
// Here we add the path to the file: /path/to/path/file1.
7169
let files_with_path = if !files.is_empty() {
7270
let mut files_with_path = vec![];
@@ -76,7 +74,6 @@ impl CopyInterpreterV2 {
7674
}
7775
files_with_path
7876
} else if !path.ends_with('/') {
79-
tracing::info!("path not ends with '/'");
8077
let rename_me: Arc<dyn TableContext> = self.ctx.clone();
8178
let op = StageSourceHelper::get_op(&rename_me, &table_info.stage_info).await?;
8279
if op.object(path).is_exist().await? {
@@ -85,7 +82,6 @@ impl CopyInterpreterV2 {
8582
vec![]
8683
}
8784
} else {
88-
tracing::info!("shit");
8985
let rename_me: Arc<dyn TableContext> = self.ctx.clone();
9086
let op = StageSourceHelper::get_op(&rename_me, &table_info.stage_info).await?;
9187

@@ -95,13 +91,10 @@ impl CopyInterpreterV2 {
9591

9692
// TODO: we could rewrite into try_collect.
9793
let mut objects = op.batch().walk_top_down(path)?;
98-
tracing::info!("common here we go top down");
9994
while let Some(de) = objects.try_next().await? {
10095
if de.mode().is_dir() {
101-
tracing::info!("dir continue");
10296
continue;
10397
}
104-
tracing::info!("insert path to list");
10598
list.insert(de.path().to_string());
10699
}
107100

@@ -310,10 +303,6 @@ impl Interpreter for CopyInterpreterV2 {
310303

311304
// Pattern match check.
312305
let pattern = &pattern;
313-
tracing::info!(
314-
"parttern should be empty right, tell me, it is {}",
315-
pattern.is_empty()
316-
);
317306
if !pattern.is_empty() {
318307
let regex = Regex::new(pattern).map_err(|e| {
319308
ErrorCode::SyntaxException(format!(

0 commit comments

Comments
 (0)