Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ public Expression toExpression(Session session, Object object, Type type)

if (type.equals(DOUBLE)) {
Double value = (Double) object;
// WARNING: the ORC predicate code depends on NaN and infinity not appearing in a tuple domain, so
// if you remove this, you will need to update the TupleDomainOrcPredicate
// When changing this, don't forget about similar code for REAL below
if (value.isNaN()) {
return FunctionCallBuilder.resolve(session, plannerContext.getMetadata())
.setName(QualifiedName.of("nan"))
Expand All @@ -161,7 +158,6 @@ public Expression toExpression(Session session, Object object, Type type)

if (type.equals(REAL)) {
Float value = intBitsToFloat(((Long) object).intValue());
// WARNING for ORC predicate code as above (for double)
if (value.isNaN()) {
return new Cast(
FunctionCallBuilder.resolve(session, plannerContext.getMetadata())
Expand Down