Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
remove isNonLiteral()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupal Mahajan committed Dec 14, 2020
1 parent b3b8282 commit 5dace04
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ private List<UnresolvedExpression> replaceGroupByItemIfAliasOrOrdinal() {
*/
private Optional<UnresolvedExpression> findNonAggregatedItemInSelect() {
return querySpec.getSelectItems().stream()
.filter(this::isNonLiteral)
.filter(this::isNonAggregatedExpression)
.filter(this::isNonLiteralFunction)
.findFirst();
Expand All @@ -135,10 +134,6 @@ private boolean isAggregatorNotFoundAnywhere() {
return querySpec.getAggregators().isEmpty();
}

private boolean isNonLiteral(UnresolvedExpression expr) {
return !(expr instanceof Literal);
}

private boolean isNonLiteralFunction(UnresolvedExpression expr) {
// The base case for recursion
if (expr instanceof Literal) {
Expand Down

0 comments on commit 5dace04

Please sign in to comment.