diff --git a/velox/exec/HashProbe.cpp b/velox/exec/HashProbe.cpp index f8a820529fe8..65200c624b78 100644 --- a/velox/exec/HashProbe.cpp +++ b/velox/exec/HashProbe.cpp @@ -1212,11 +1212,12 @@ void HashProbe::prepareFilterRowsForNullAwareJoin( for (auto& projection : filterInputProjections_) { filterInputColumnDecodedVector_.decode( *filterInput->childAt(projection.outputChannel), filterInputRows_); - if (filterInputColumnDecodedVector_.mayHaveNulls()) { + if (const uint64_t* nulls = + filterInputColumnDecodedVector_.nulls(&filterInputRows_)) { SelectivityVector nullsInActiveRows(numRows); memcpy( nullsInActiveRows.asMutableRange().bits(), - filterInputColumnDecodedVector_.nulls(&filterInputRows_), + nulls, bits::nbytes(numRows)); // All rows that are not active count as non-null here. bits::orWithNegatedBits(