Skip to content

Commit 363f01e

Browse files
committed
negate and/or/true/false
1 parent 876cd9f commit 363f01e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/iceberg/expression/expression.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,17 @@ Result<Expression::Operation> Negate(Expression::Operation op) {
174174
case Expression::Operation::kNotStartsWith:
175175
return Expression::Operation::kStartsWith;
176176
case Expression::Operation::kTrue:
177+
return Expression::Operation::kFalse;
177178
case Expression::Operation::kFalse:
179+
return Expression::Operation::kTrue;
180+
case Expression::Operation::kAnd:
181+
return Expression::Operation::kOr;
182+
case Expression::Operation::kOr:
183+
return Expression::Operation::kAnd;
178184
case Expression::Operation::kNot:
179185
case Expression::Operation::kCountStar:
180186
case Expression::Operation::kMax:
181187
case Expression::Operation::kMin:
182-
case Expression::Operation::kAnd:
183-
case Expression::Operation::kOr:
184188
case Expression::Operation::kCount:
185189
return InvalidArgument("No negation for operation: {}", op);
186190
}

0 commit comments

Comments
 (0)