Skip to content

Commit

Permalink
Move return statement to the empty catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Jan 22, 2025
1 parent 16f43e8 commit 73c9583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ static NestedLoopOutputIterator createNestedLoopOutputIterator(Page probePage, P
}
}
catch (ArithmeticException overflow) {
// Repeat larger position count a smaller position count number of times
Page outputPage = new Page(max(probePositions, buildPositions));
return new PageRepeatingIterator(outputPage, min(probePositions, buildPositions));
}
// Repeat larger position count a smaller position count number of times
Page outputPage = new Page(max(probePositions, buildPositions));
return new PageRepeatingIterator(outputPage, min(probePositions, buildPositions));
}
if (probeChannels.length == 0 && probePage.getPositionCount() <= buildPage.getPositionCount()) {
return new PageRepeatingIterator(buildPage.getColumns(buildChannels), probePage.getPositionCount());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public Optional<Expression> apply(Expression expression, Session session, Map<Sy
return Optional.of(new Constant(expression.type(), evaluator.evaluate(expression, session, ImmutableMap.of())));
}
catch (TrinoException e) {
return Optional.empty();
}

return Optional.empty();
}
}

0 comments on commit 73c9583

Please sign in to comment.