Skip to content

Commit a0db9b3

Browse files
committed
chore: make linter happy
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
1 parent 6069064 commit a0db9b3

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/common/storage/src/location.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,10 @@ pub fn parse_uri_location(l: &UriLocation) -> Result<(StorageParams, String)> {
9797
.to_string(),
9898
root: root.to_string(),
9999
}),
100-
Scheme::Ipfs => {
101-
StorageParams::Ipfs(StorageIpfsConfig {
102-
endpoint_url: STORAGE_IPFS_DEFAULT_ENDPOINT.to_string(),
103-
root: "/ipfs/".to_string() + l.name.as_str(),
104-
})
105-
}
100+
Scheme::Ipfs => StorageParams::Ipfs(StorageIpfsConfig {
101+
endpoint_url: STORAGE_IPFS_DEFAULT_ENDPOINT.to_string(),
102+
root: "/ipfs/".to_string() + l.name.as_str(),
103+
}),
106104
Scheme::S3 => StorageParams::S3(StorageS3Config {
107105
endpoint_url: l
108106
.connection

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,15 @@ impl CopyInterpreterV2 {
163163
match &from.source_info {
164164
SourceInfo::StageSource(table_info) => {
165165
let path = &table_info.path;
166-
tracing::debug!("list files under path: {}", path);
167166
// Here we add the path to the file: /path/to/path/file1.
168167
let files_with_path = if !files.is_empty() {
169-
tracing::trace!("got files offered in list");
170168
let mut files_with_path = vec![];
171169
for file in files {
172170
let new_path = Path::new(path).join(file);
173171
files_with_path.push(new_path.to_string_lossy().to_string());
174172
}
175173
files_with_path
176174
} else if !path.ends_with('/') {
177-
tracing::trace!("path not ends with '/'");
178175
let rename_me: Arc<dyn TableContext> = self.ctx.clone();
179176
let op = StageSourceHelper::get_op(&rename_me, &table_info.stage_info).await?;
180177
if op.object(path).is_exist().await? {
@@ -183,7 +180,6 @@ impl CopyInterpreterV2 {
183180
vec![]
184181
}
185182
} else {
186-
tracing::trace!("have to list directories in stage");
187183
let rename_me: Arc<dyn TableContext> = self.ctx.clone();
188184
let op = StageSourceHelper::get_op(&rename_me, &table_info.stage_info).await?;
189185

@@ -195,10 +191,8 @@ impl CopyInterpreterV2 {
195191
let mut objects = op.batch().walk_top_down(path)?;
196192
while let Some(de) = objects.try_next().await? {
197193
if de.mode().is_dir() {
198-
tracing::trace!("listing in stage path:{} got directory: {}", path, de.path());
199194
continue;
200195
}
201-
tracing::trace!("listing in stage path:{} got file: {}",path, de.path());
202196
list.insert(de.path().to_string());
203197
}
204198

0 commit comments

Comments
 (0)