Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
More skeleton code for aggregation as pipeline breaker
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbooker committed Feb 26, 2024
1 parent 1ffcf04 commit a290334
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion eggstrain/src/execution/operators/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,25 @@ impl UnaryOperator for Aggregte {
) {
let mut batches = vec![];
loop {
todo!();
match rx.recv().await {
Ok(batch) => {
batches.push(batch);
}
Err(e) => match e {
RecvError::Closed => break,
RecvError::Lagged(_) => todo!(),
},
}
}

let merged_batch = concat_batches(&self.schema, &batches);
match merged_batch {
Ok(merged_batch) => {
todo!("Implement");
}
Error => {
todo!("Could not concat the batches");
}
}
todo!();
}
Expand Down

0 comments on commit a290334

Please sign in to comment.