Skip to content

Commit 0e530eb

Browse files
One more map_ok
1 parent 3fcae86 commit 0e530eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

acceptance/src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ pub async fn assert_scan_data(engine: Arc<dyn Engine>, test_case: &TestCaseInfo)
128128
let mut schema = None;
129129
let batches: Vec<RecordBatch> = scan
130130
.execute(engine)?
131-
.map(|res| -> DeltaResult<_> {
132-
let res = res?;
131+
.map_ok(|res| -> DeltaResult<_> {
133132
let data = res.raw_data?;
134133
let record_batch: RecordBatch = data
135134
.into_any()
@@ -145,6 +144,7 @@ pub async fn assert_scan_data(engine: Arc<dyn Engine>, test_case: &TestCaseInfo)
145144
Ok(record_batch)
146145
}
147146
})
147+
.flatten_ok()
148148
.try_collect()?;
149149
let all_data = concat_batches(&schema.unwrap(), batches.iter()).map_err(Error::from)?;
150150
let all_data = sort_record_batch(all_data)?;

0 commit comments

Comments
 (0)