1 parent d9955e3 commit 69cd381Copy full SHA for 69cd381
1 file changed
cpp/src/gandiva/codegen/filter.cc
@@ -96,7 +96,7 @@ Status Filter::Evaluate(const arrow::RecordBatch &batch,
96
// Compute the intersection of the value and validity.
97
auto result = bitmaps.GetLocalBitMap(2);
98
BitMapAccumulator::IntersectBitMaps(
99
- result, {bitmaps.GetLocalBitMap(0), bitmaps.GetLocalBitMap((1))}, bitmap_size);
+ result, {bitmaps.GetLocalBitMap(0), bitmaps.GetLocalBitMap((1))}, batch.num_rows());
100
101
return out_selection->PopulateFromBitMap(result, bitmap_size, batch.num_rows() - 1);
102
}
0 commit comments