Skip to content

Commit

Permalink
Test testPredicatePushdown against comparison operator in mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
krvikash authored and Praveen2112 committed Aug 8, 2023
1 parent b133040 commit c76d4be
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,12 @@ public void testExplainAnalyzeWithDeleteWithSubquery()
public void testPredicatePushdown(String value)
{
try (TestTable table = new TestTable(getQueryRunner()::execute, "test_predicate_pushdown", "AS SELECT %s col".formatted(value))) {
assertThat(query("SELECT * FROM " + table.getName() + " WHERE col = " + value + ""))
.isFullyPushedDown();
testPredicatePushdown(table.getName(), "col = " + value);
testPredicatePushdown(table.getName(), "col != " + value);
testPredicatePushdown(table.getName(), "col < " + value);
testPredicatePushdown(table.getName(), "col > " + value);
testPredicatePushdown(table.getName(), "col <= " + value);
testPredicatePushdown(table.getName(), "col >= " + value);
}
}

Expand Down

0 comments on commit c76d4be

Please sign in to comment.