We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcc3f7 commit fb976a1Copy full SHA for fb976a1
vortex-layout/src/layouts/flat/reader.rs
@@ -158,9 +158,11 @@ impl LayoutReader for FlatReader {
158
159
let array_mask = if *USE_VORTEX_OPERATORS {
160
if mask.density() < FILTER_OF_FILTER_THRESHOLD {
161
- // Run only over the pre-filtered rows.
162
- 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
163
+ // after this.
164
let array = array.apply(&expr)?;
165
+ let array = array.filter(mask.clone())?;
166
let array_mask = array.execute_mask(&session)?;
167
168
mask.intersect_by_rank(&array_mask)
0 commit comments