Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions vortex-layout/src/layouts/flat/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ impl LayoutReader for FlatReader {

let array_mask = if *USE_VORTEX_OPERATORS {
if mask.density() < FILTER_OF_FILTER_THRESHOLD {
// Run only over the pre-filtered rows.
let array = array.filter(mask.clone())?;
// We have the choice to apply the filter or the expression first, we apply the
// expression first so that it can try pushing down itself and then the filter
// after this.
let array = array.apply(&expr)?;
let array = array.filter(mask.clone())?;
let array_mask = array.execute_mask(&session)?;

mask.intersect_by_rank(&array_mask)
Expand Down
Loading