Skip to content

Commit 8076d44

Browse files
committed
Fix building error
1 parent 85654c2 commit 8076d44

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/iceberg/expression/predicate.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ inline int32_t CountUTF8CodePoints(std::string_view str) {
164164
}
165165
}
166166
return code_point_count;
167+
}
168+
167169
bool IsNan(const Literal& literal) {
168170
const auto& value = literal.value();
169171
if (std::holds_alternative<float>(value)) {

src/iceberg/test/predicate_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ TEST_F(PredicateTest, TruncateOptimizationNotAppliedForEmptyLiteralWithNonZeroWi
648648
auto* literal_pred = dynamic_cast<BoundLiteralPredicate*>(bound_pred.get());
649649
ASSERT_NE(literal_pred, nullptr);
650650
EXPECT_EQ(literal_pred->term()->kind(), Term::Kind::kTransform);
651+
}
652+
651653
TEST_F(PredicateTest, BoundUnaryPredicateNegate) {
652654
auto is_null_pred = Expressions::IsNull("name");
653655
auto bound_null = is_null_pred->Bind(*schema_, /*case_sensitive=*/true).value();

0 commit comments

Comments
 (0)