Skip to content

Commit

Permalink
Add debug print statement to DataFrame.collect for improved traceability
Browse files Browse the repository at this point in the history
  • Loading branch information
kosiew committed Jan 13, 2025
1 parent a8d4077 commit 52c57ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions datafusion/core/src/dataframe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ impl DataFrame {
/// # }
/// ```
pub async fn collect(self) -> Result<Vec<RecordBatch>> {
println!("==> Datafrrame.collect");
let task_ctx = Arc::new(self.task_ctx());
let plan = self.create_physical_plan().await?;
collect(plan, task_ctx).await
Expand Down
2 changes: 1 addition & 1 deletion datafusion/core/src/dataframe/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl DataFrame {
)?
.build()?;

println!("==> Built copy_to logical plan");
println!("==> ==> Built copy_to logical plan");

let result = DataFrame {
session_state: self.session_state,
Expand Down

0 comments on commit 52c57ce

Please sign in to comment.