Kontinuation commented on code in PR #690:
URL: https://github.com/apache/sedona-db/pull/690#discussion_r2889169277
##########
rust/sedona-pointcloud/src/las/opener.rs:
##########
@@ -280,11 +280,32 @@ mod tests {
#[tokio::test]
async fn round_robin_partitioning() {
+ use datafusion_common::arrow::compute::{
+ concat_batches, sort_to_indices, take_record_batch,
+ };
+
+ /// Concatenate batches and sort by the column at `sort_col` index for
+ /// order-independent comparison.
+ fn concat_and_sort(
+ batches: &[arrow_array::RecordBatch],
+ sort_col: usize,
+ ) -> arrow_array::RecordBatch {
Review Comment:
Good point. Updated `concat_and_sort` to show a clear error message when
batches is empty.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]