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 committed Aug 7, 2023
1 parent ab2161f commit 5b050ea
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,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 5b050ea

Please sign in to comment.