diff --git a/cpp/velox/operators/serializer/VeloxColumnarToRowConverter.cc b/cpp/velox/operators/serializer/VeloxColumnarToRowConverter.cc index 04cfa8933484..714912302347 100644 --- a/cpp/velox/operators/serializer/VeloxColumnarToRowConverter.cc +++ b/cpp/velox/operators/serializer/VeloxColumnarToRowConverter.cc @@ -35,7 +35,7 @@ void VeloxColumnarToRowConverter::refreshStates(facebook::velox::RowVectorPtr ro fast_ = std::make_unique(rowVector); if (auto fixedRowSize = velox::row::UnsafeRowFast::fixedRowSize(velox::asRowType(rowVector->type()))) { - memThreshold_ == std::max(memThreshold_, fixedRowSize.value()); + memThreshold_ = std::max(memThreshold_, fixedRowSize.value()); auto rowSize = fixedRowSize.value(); numRows_ = std::min(memThreshold_ / rowSize, vectorLength - startRow); } else {