Skip to content

Commit

Permalink
Use parenthesis to make boolean logic clearer in QueryPlanner
Browse files Browse the repository at this point in the history
  • Loading branch information
pettyjamesm committed Aug 10, 2023
1 parent aee6bc8 commit 97a1277
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ private PlanBuilder distinct(PlanBuilder subPlan, QuerySpecification node, List<

private Optional<OrderingScheme> orderingScheme(PlanBuilder subPlan, Optional<OrderBy> orderBy, List<Expression> orderByExpressions)
{
if (orderBy.isEmpty() || (isSkipRedundantSort(session)) && analysis.isOrderByRedundant(orderBy.get())) {
if (orderBy.isEmpty() || (isSkipRedundantSort(session) && analysis.isOrderByRedundant(orderBy.get()))) {
return Optional.empty();
}

Expand Down

0 comments on commit 97a1277

Please sign in to comment.