Skip to content

Commit

Permalink
Set default
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Apr 16, 2024
1 parent 6d8802b commit 3ae0f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions velox/dwio/common/tests/utils/FilterGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ class ColumnStats : public AbstractColumnStats {
return std::make_unique<velox::common::BigintRange>(0, 0, false);
}
}
int32_t lowerIndex;
int32_t upperIndex;
int32_t lowerIndex = 0;
int32_t upperIndex = 0;
T lower = valueAtPct(filterSpec.startPct, &lowerIndex);
T upper =
valueAtPct(filterSpec.startPct + filterSpec.selectPct, &upperIndex);
Expand Down Expand Up @@ -314,7 +314,7 @@ class ColumnStats : public AbstractColumnStats {
std::unique_ptr<Filter> makeRowGroupSkipRangeFilter(
const std::vector<RowVectorPtr>& batches,
const Subfield& subfield) {
T max;
T max = {};
bool hasMax = false;
for (auto batch : batches) {
auto values = getChildBySubfield(batch.get(), subfield, rootType_)
Expand Down

0 comments on commit 3ae0f83

Please sign in to comment.