Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Jul 10, 2024
1 parent a90f80b commit 5e785a1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions src/connector/src/source/filesystem/nd_streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ pub async fn split_stream(data_stream: BoxSourceStream) {
let mut line = String::new();
match cursor.read_line(&mut line).await {
Ok(0) => {
println!("WKXLOG Read line empty, {:?}", msgs);
if !msgs.is_empty() {
yield msgs;
}
break;
}
Ok(_n) => {
println!("WKXLOG Read line: {:?}", line);
if line_cnt == 0 && last_message.is_some() {
let msg: SourceMessage = std::mem::take(&mut last_message).unwrap();
let last_payload = msg.payload.unwrap();
Expand Down Expand Up @@ -118,8 +116,6 @@ pub async fn split_stream(data_stream: BoxSourceStream) {
}

if let Some(msg) = last_message {
println!("WKXLOG last_message msg: {:?}", msg);

yield vec![msg];
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@ impl<Src: OpendalSource> OpendalReader<Src> {
yield batch;
}
}
}
}
2 changes: 0 additions & 2 deletions src/stream/src/executor/source/fetch_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ impl<S: StateStore, Src: OpendalSource> FsFetchExecutor<S, Src> {
}
// StreamChunk from FsSourceReader, and the reader reads only one file.
Either::Right(chunk) => {
println!("WKXLOG fetch_executor into_stream chunk: {:?}", chunk);
// println!("WKXLOG fetch_executor mapping: {:?}", mapping);
let mapping =
get_split_offset_mapping_from_chunk(&chunk, split_idx, offset_idx)
.unwrap();
Expand Down

0 comments on commit 5e785a1

Please sign in to comment.