Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Apr 11, 2022
1 parent 910501b commit f92dae6
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1759,8 +1759,8 @@ private ArgumentLabel validateLabelConsistency(FunctionCall node, boolean labelR
String name = node.getName().getSuffix();

List<Expression> unlabeledInputColumns = Streams.concat(
extractExpressions(ImmutableList.of(node.getArguments().get(argumentIndex)), Identifier.class).stream(),
extractExpressions(ImmutableList.of(node.getArguments().get(argumentIndex)), DereferenceExpression.class).stream())
extractExpressions(ImmutableList.of(node.getArguments().get(argumentIndex)), Identifier.class).stream(),
extractExpressions(ImmutableList.of(node.getArguments().get(argumentIndex)), DereferenceExpression.class).stream())
.filter(expression -> columnReferences.containsKey(NodeRef.of(expression)))
.collect(toImmutableList());
List<Expression> labeledInputColumns = extractExpressions(ImmutableList.of(node.getArguments().get(argumentIndex)), DereferenceExpression.class).stream()
Expand Down Expand Up @@ -2961,8 +2961,12 @@ public static ExpressionAnalyzer createWithoutSubqueries(
parameters,
warningCollector,
isDescribe,
expression -> { throw new IllegalStateException("Cannot access preanalyzed types"); },
functionCall -> { throw new IllegalStateException("Cannot access resolved windows"); });
expression -> {
throw new IllegalStateException("Cannot access preanalyzed types");
},
functionCall -> {
throw new IllegalStateException("Cannot access resolved windows");
});
}

public static boolean isNumericType(Type type)
Expand Down

0 comments on commit f92dae6

Please sign in to comment.