Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo committed Nov 20, 2024
1 parent a71d761 commit 98285dd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion velox/dwio/common/tests/utils/E2EFilterTestBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ void E2EFilterTestBase::testRowGroupSkip(
for (auto& field : filterable) {
VectorPtr child = getChildBySubfield(batches[0].get(), Subfield(field));
if (child->typeKind() == TypeKind::BIGINT ||
child->typeKind() == TypeKind::HUGEINT ||
child->typeKind() == TypeKind::VARCHAR) {
specs.emplace_back();
specs.back().field = field;
Expand Down
4 changes: 0 additions & 4 deletions velox/dwio/common/tests/utils/FilterGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,6 @@ class ColumnStats : public AbstractColumnStats {
}
}
}
if constexpr (std::is_same_v<T, int128_t>) {
return std::make_unique<velox::common::HugeintRange>(
max, max, false);
}
return std::make_unique<velox::common::BigintRange>(
getIntegerValue(max), getIntegerValue(max), false);
}
Expand Down
4 changes: 2 additions & 2 deletions velox/dwio/parquet/tests/reader/E2EFilterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ TEST_F(E2EFilterTest, longDecimalDirect) {
true);
},
true,
{},
{"longdecimal_val"},
20);
}

Expand All @@ -456,7 +456,7 @@ TEST_F(E2EFilterTest, longDecimalDirect) {
{-479, HugeInt::build(1546093991, 4054979645)});
},
false,
{},
{"longdecimal_val"},
20);
}

Expand Down
1 change: 1 addition & 0 deletions velox/type/tests/FilterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ TEST(FilterTest, isNull) {

EXPECT_FALSE(isNull.testNonNull());
EXPECT_FALSE(isNull.testInt64(10));
EXPECT_FALSE(isNull.testInt128(10));

EXPECT_EQ("Filter(IsNull, deterministic, null allowed)", isNull.toString());
}
Expand Down

0 comments on commit 98285dd

Please sign in to comment.