wiedld commented on code in PR #7379:
URL: https://github.com/apache/arrow-datafusion/pull/7379#discussion_r1326910418


##########
datafusion/core/src/physical_plan/sorts/cascade.rs:
##########
@@ -0,0 +1,247 @@
+use crate::physical_plan::metrics::BaselineMetrics;
+use crate::physical_plan::sorts::builder::SortOrder;
+use crate::physical_plan::sorts::cursor::Cursor;
+use crate::physical_plan::sorts::merge::SortPreservingMergeStream;
+use crate::physical_plan::sorts::stream::{
+    BatchCursorStream, BatchId, BatchTrackingStream, MergeStream, 
OffsetCursorStream,
+    YieldedCursorStream,
+};
+use crate::physical_plan::stream::ReceiverStream;
+use crate::physical_plan::RecordBatchStream;
+
+use arrow::compute::interleave;
+use arrow::datatypes::SchemaRef;
+use arrow::record_batch::RecordBatch;
+use datafusion_common::Result;
+use datafusion_execution::memory_pool::MemoryReservation;
+use futures::{Stream, StreamExt};
+use std::collections::{HashMap, VecDeque};
+use std::pin::Pin;
+use std::sync::Arc;
+use std::task::{Context, Poll};
+
+pub(crate) struct SortPreservingCascadeStream<C: Cursor> {

Review Comment:
   What do you think [about 
this](https://github.com/apache/arrow-datafusion/blob/3786021a2e087ee1576ab7be0becc01c75fa95e9/datafusion/core/src/physical_plan/sorts/cascade.rs#L25-L76)?



-- 
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]

Reply via email to