Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2025-12-22 18:39:14 +08:00
parent 5b50b4824d
commit 709ccd3e31

View File

@@ -1282,8 +1282,7 @@ mod test {
.unwrap(),
)
}
} else {
if chain_windowed_sort {
} else if chain_windowed_sort {
// if chain_windowed_sort is true, we expect a single output batch sorted across all ranges
let mut sorted = output_data.into_iter().flatten().collect_vec();
if descending {
@@ -1300,8 +1299,7 @@ mod test {
let batches = output_data
.into_iter()
.map(|a| {
DfRecordBatch::try_new(schema.clone(), vec![new_ts_array(unit, a)])
.unwrap()
DfRecordBatch::try_new(schema.clone(), vec![new_ts_array(unit, a)]).unwrap()
})
.collect_vec();
if batches.is_empty() {
@@ -1309,7 +1307,6 @@ mod test {
} else {
Some(concat_batches(&schema, &batches).unwrap())
}
}
};
test_cases.push((