Skip to content

Commit

Permalink
make PageFilter Send (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantengsky authored Oct 15, 2021
1 parent d73f166 commit 258644e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/page_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::page::{
};

/// Type declaration for a page filter
pub type PageFilter = Arc<dyn Fn(&ColumnDescriptor, &DataPageHeader) -> bool>;
pub type PageFilter = Arc<dyn Fn(&ColumnDescriptor, &DataPageHeader) -> bool + Send + Sync>;

/// A page iterator iterates over row group's pages. In parquet, pages are guaranteed to be
/// contiguously arranged in memory and therefore must be read in sequence.
Expand Down

0 comments on commit 258644e

Please sign in to comment.