Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 authored and zhli1142015 committed Oct 4, 2024
1 parent 994a330 commit aec7761
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions velox/exec/HashProbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ RowVectorPtr HashProbe::getOutputInternal(bool toSpillOutput) {

// Intialize 'leftSemiProjectIsNull_' for null aware lft semi join.
if (isLeftSemiProjectJoin(joinType_) && nullAware_) {
leftSemiProjectIsNull_.resize(outputTableRowsCapacity_);
leftSemiProjectIsNull_.clearAll();
}
}
Expand Down Expand Up @@ -1488,8 +1489,6 @@ int32_t HashProbe::evalFilter(int32_t numRows, int32_t offset) {
static const char* kPassed = "passed";

if (nullAware_) {
leftSemiProjectIsNull_.resize(numRows + offset, false);

auto addLast = [&](auto row, std::optional<bool> passed) {
if (passed.has_value()) {
outputTableRows[numPassed] =
Expand Down
12 changes: 0 additions & 12 deletions velox/vector/BaseVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -867,18 +867,6 @@ class BaseVector {
storageByteCount_ = std::nullopt;
}

// Slice a buffer with specific type.
//
// For boolean type and if the offset is not multiple of 8, return a shifted
// copy; otherwise return a BufferView into the original buffer (with shared
// ownership of original buffer).
static BufferPtr sliceBuffer(
const Type&,
const BufferPtr&,
vector_size_t offset,
vector_size_t length,
memory::MemoryPool*);

protected:
// Returns a brief summary of the vector. The default implementation includes
// encoding, type, number of rows and number of nulls.
Expand Down

0 comments on commit aec7761

Please sign in to comment.