File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use std::sync::Arc;
1515pub struct PyRecordBatch ( RecordBatch ) ;
1616
1717/// Python-exposed iterator over RecordBatches
18- #[ pyclass( unsendable , module = "connectorx" ) ]
18+ #[ pyclass( module = "connectorx" ) ]
1919pub struct PyRecordBatchIterator ( Box < dyn RecordBatchIterator > ) ;
2020
2121#[ pymethods]
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ where
153153 }
154154}
155155
156- pub trait RecordBatchIterator {
156+ pub trait RecordBatchIterator : Send {
157157 fn get_schema ( & self ) -> ( RecordBatch , & [ String ] ) ;
158158 fn prepare ( & mut self ) ;
159159 fn next_batch ( & mut self ) -> Option < RecordBatch > ;
@@ -167,7 +167,7 @@ where
167167 TSD = ArrowStreamTypeSystem ,
168168 S = S ,
169169 D = ArrowStreamDestination ,
170- > ,
170+ > + std :: marker :: Send ,
171171{
172172 fn get_schema ( & self ) -> ( RecordBatch , & [ String ] ) {
173173 ( self . dst . empty_batch ( ) , self . dst . names ( ) )
You can’t perform that action at this time.
0 commit comments