We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fcae86 commit 0e530ebCopy full SHA for 0e530eb
acceptance/src/data.rs
@@ -128,8 +128,7 @@ pub async fn assert_scan_data(engine: Arc<dyn Engine>, test_case: &TestCaseInfo)
128
let mut schema = None;
129
let batches: Vec<RecordBatch> = scan
130
.execute(engine)?
131
- .map(|res| -> DeltaResult<_> {
132
- let res = res?;
+ .map_ok(|res| -> DeltaResult<_> {
133
let data = res.raw_data?;
134
let record_batch: RecordBatch = data
135
.into_any()
@@ -145,6 +144,7 @@ pub async fn assert_scan_data(engine: Arc<dyn Engine>, test_case: &TestCaseInfo)
145
144
Ok(record_batch)
146
}
147
})
+ .flatten_ok()
148
.try_collect()?;
149
let all_data = concat_batches(&schema.unwrap(), batches.iter()).map_err(Error::from)?;
150
let all_data = sort_record_batch(all_data)?;
0 commit comments