We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76402b5 commit 6acc07aCopy full SHA for 6acc07a
1 file changed
src/iceberg/expression/predicate.cc
@@ -71,6 +71,10 @@ Result<std::unique_ptr<UnboundPredicateImpl<B>>> UnboundPredicateImpl<B>::Make(
71
return InvalidExpression("Cannot create {} predicate inclusive a value",
72
::iceberg::ToString(op));
73
}
74
+ if (value.IsNaN()) [[unlikely]] {
75
+ return InvalidExpression(
76
+ "Invalid expression literal: NaN, use isNaN or notNaN instead");
77
+ }
78
return std::unique_ptr<UnboundPredicateImpl<B>>(
79
new UnboundPredicateImpl<B>(op, std::move(term), std::move(value)));
80
0 commit comments