rdblue commented on a change in pull request #1981:
URL: https://github.com/apache/iceberg/pull/1981#discussion_r548271146
##########
File path:
api/src/test/java/org/apache/iceberg/transforms/TestTimestampsProjection.java
##########
@@ -74,22 +74,22 @@ public void assertProjectionStrictValue(PartitionSpec spec,
UnboundPredicate<?>
Expression.Operation expectedOp) {
Expression projection = Projections.strict(spec).project(filter);
- Assert.assertEquals(projection.op(), expectedOp);
+ Assert.assertEquals(expectedOp, projection.op());
}
public void assertProjectionInclusiveValue(PartitionSpec spec,
UnboundPredicate<?> filter,
Expression.Operation expectedOp) {
Expression projection = Projections.inclusive(spec).project(filter);
- Assert.assertEquals(projection.op(), expectedOp);
+ Assert.assertEquals(expectedOp, projection.op());
}
public void assertProjectionInclusive(PartitionSpec spec,
UnboundPredicate<?> filter,
Expression.Operation expectedOp,
String expectedLiteral) {
Expression projection = Projections.inclusive(spec).project(filter);
UnboundPredicate<?> predicate = assertAndUnwrapUnbound(projection);
- Assert.assertEquals(predicate.op(), expectedOp);
Review comment:
More tests need to be added here. I just wanted to get this up for
review since I'm going to be out for a couple of days.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]