Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Oct 11, 2024
1 parent f784e02 commit c691994
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions velox/exec/HashProbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ RowVectorPtr HashProbe::getOutputInternal(bool toSpillOutput) {
accumulatedNumOutput < operatorCtx_->driverCtx()
->queryConfig()
.preferredOutputBatchBytes() &&
outputBatchSize - numOut > 0) {
outputBatchSize > numOut) {
mapping = folly::Range(
outputRowMapping_->asMutable<vector_size_t>() +
accumulatedNumOutput,
Expand Down Expand Up @@ -1160,13 +1160,9 @@ RowVectorPtr HashProbe::createFilterInput(
vector_size_t size,
vector_size_t offset) {
BufferPtr outputRowMapping = outputRowMapping_;
if (offset > 0) {
outputRowMapping = BaseVector::sliceBuffer(
*INTEGER(),
outputRowMapping_,
offset,
outputTableRowsCapacity_ - offset,
pool());
if (offset > 0 && outputRowMapping_) {
outputRowMapping = Buffer::slice<vector_size_t>(
outputRowMapping_, offset, outputTableRowsCapacity_ - offset, pool());
}
std::vector<VectorPtr> filterColumns(filterInputType_->size());
for (auto projection : filterInputProjections_) {
Expand Down

0 comments on commit c691994

Please sign in to comment.