Skip to content

Commit

Permalink
add aggregate to simple aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
emgeee committed Aug 15, 2024
1 parent b10ac78 commit 81d141d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions crates/core/src/datastream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,11 @@ impl DataStream {
loop {
match stream.next().await.transpose() {
Ok(Some(batch)) => {
for i in 0..batch.num_rows() {
let row = batch.slice(i, 1);
println!(
"{}",
datafusion::common::arrow::util::pretty::pretty_format_batches(&[row])
.unwrap()
);
}
println!(
"{}",
datafusion::common::arrow::util::pretty::pretty_format_batches(&[batch])
.unwrap()
);
}
Ok(None) => {
log::warn!("No RecordBatch in stream");
Expand Down

0 comments on commit 81d141d

Please sign in to comment.