Skip to content

Commit

Permalink
Fix shuffle writer test (#998)
Browse files Browse the repository at this point in the history
* Fix test data in shuffle writer to produce 2 partitions

* Remove TODO

* Clippy
  • Loading branch information
Jefffrey authored Apr 13, 2024
1 parent 1be0a46 commit 321af95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ballista/core/src/execution_plans/shuffle_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ mod tests {
let batch = RecordBatch::try_new(
schema.clone(),
vec![
Arc::new(UInt32Array::from(vec![Some(1), Some(2)])),
Arc::new(UInt32Array::from(vec![Some(1), Some(3)])),
Arc::new(StringArray::from(vec![Some("hello"), Some("world")])),
],
)?;
Expand Down
2 changes: 1 addition & 1 deletion ballista/scheduler/src/scheduler_server/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> SchedulerGrpc
Status::internal(msg)
})?;

let mut available_slots = vec![AvailableTaskSlots {
let mut available_slots = [AvailableTaskSlots {
executor_id,
slots: num_free_slots,
}];
Expand Down

0 comments on commit 321af95

Please sign in to comment.