You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For code like tokio::spawn(get_page_stream(col_chunk_meta, reader, buffer, page_filter)), which requires the Future being spawned should be Send, rustc complains about the parameter page_filter as follows:
type Arc<dyn for<'r, 's> Fn(&'r ColumnDescriptor, &'s DataPageHeader) -> bool> which is not Send
Currently the signature of get_page_stream and the type def of PageFilter are:
For code like
tokio::spawn(get_page_stream(col_chunk_meta, reader, buffer, page_filter))
, which requires theFuture
being spawned should beSend
, rustc complains about the parameterpage_filter
as follows:Currently the signature of
get_page_stream
and the type def ofPageFilter
are:parquet2/src/read/page_stream.rs
Lines 16 to 21 in 7661cd4
parquet2/src/read/page_iterator.rs
Line 15 in 5ec7e09
Should other APIs be used to get pages asynchronously in this case?
Is it possible/proper to change the type of
PageFilter
toso that
PageFilter
will beSend
The text was updated successfully, but these errors were encountered: