Skip to content

Commit a141a3b

Browse files
committed
Add assert for the batch schema
1 parent 8f858a7 commit a141a3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/metrics/task_metrics_collector.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,13 @@ mod tests {
250250
let task_ctx = ctx.task_ctx();
251251
let stream = stage_exec.execute(0, task_ctx).unwrap();
252252

253+
let schema = stream.schema();
254+
253255
let mut stream = stream;
254256
while let Some(batch) = stream.next().await {
255-
batch.unwrap();
257+
let batch = batch.unwrap();
258+
259+
assert_eq!(schema, batch.schema())
256260
}
257261
}
258262

0 commit comments

Comments
 (0)