Skip to content

Commit

Permalink
Add BasePlanTest#assertPlan that accepts session
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Oct 2, 2019
1 parent ad16ab7 commit eade180
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ protected void assertPlan(String sql, PlanMatchPattern pattern)
assertPlan(sql, LogicalPlanner.Stage.OPTIMIZED_AND_VALIDATED, pattern);
}

protected void assertPlan(String sql, Session session, PlanMatchPattern pattern)
{
assertPlanWithSession(sql, session, true, pattern);
}

protected void assertPlan(String sql, LogicalPlanner.Stage stage, PlanMatchPattern pattern)
{
List<PlanOptimizer> optimizers = queryRunner.getPlanOptimizers(true);
Expand Down

0 comments on commit eade180

Please sign in to comment.