From f92dae626e45dd107b610d0723d4c8eee9ab415d Mon Sep 17 00:00:00 2001 From: Karol Sobczak Date: Mon, 11 Apr 2022 14:39:53 +0200 Subject: [PATCH] Fix formatting --- .../io/trino/sql/analyzer/ExpressionAnalyzer.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/trino-main/src/main/java/io/trino/sql/analyzer/ExpressionAnalyzer.java b/core/trino-main/src/main/java/io/trino/sql/analyzer/ExpressionAnalyzer.java index 64b4dba687dc..7b469421e5d1 100644 --- a/core/trino-main/src/main/java/io/trino/sql/analyzer/ExpressionAnalyzer.java +++ b/core/trino-main/src/main/java/io/trino/sql/analyzer/ExpressionAnalyzer.java @@ -1759,8 +1759,8 @@ private ArgumentLabel validateLabelConsistency(FunctionCall node, boolean labelR String name = node.getName().getSuffix(); List 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 labeledInputColumns = extractExpressions(ImmutableList.of(node.getArguments().get(argumentIndex)), DereferenceExpression.class).stream() @@ -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)