Skip to content

Commit

Permalink
Rename analyzeExpressionsWithSymbols method
Browse files Browse the repository at this point in the history
There's no longer a conflict with analyzeExpressionsWithInputs so
simplify the name
  • Loading branch information
martint committed Mar 7, 2019
1 parent c8d352e commit 6260a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1468,10 +1468,10 @@ public static Map<NodeRef<Expression>, Type> getExpressionTypes(
WarningCollector warningCollector,
boolean isDescribe)
{
return analyzeExpressionsWithSymbols(session, metadata, sqlParser, types, expressions, parameters, warningCollector, isDescribe).getExpressionTypes();
return analyzeExpressions(session, metadata, sqlParser, types, expressions, parameters, warningCollector, isDescribe).getExpressionTypes();
}

public static ExpressionAnalysis analyzeExpressionsWithSymbols(
public static ExpressionAnalysis analyzeExpressions(
Session session,
Metadata metadata,
SqlParser sqlParser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
import static io.prestosql.spi.type.VarcharType.VARCHAR;
import static io.prestosql.sql.ExpressionUtils.rewriteIdentifiersToSymbolReferences;
import static io.prestosql.sql.ParsingUtil.createParsingOptions;
import static io.prestosql.sql.analyzer.ExpressionAnalyzer.analyzeExpressionsWithSymbols;
import static io.prestosql.sql.analyzer.ExpressionAnalyzer.analyzeExpressions;
import static io.prestosql.sql.analyzer.ExpressionAnalyzer.getExpressionTypes;
import static io.prestosql.sql.planner.iterative.rule.CanonicalizeExpressionRewriter.canonicalizeExpression;
import static io.prestosql.sql.relational.Expressions.constant;
Expand Down Expand Up @@ -748,7 +748,7 @@ public static Expression createExpression(Session session, String expression, Me

parsedExpression = rewriteIdentifiersToSymbolReferences(parsedExpression);

final ExpressionAnalysis analysis = analyzeExpressionsWithSymbols(
final ExpressionAnalysis analysis = analyzeExpressions(
session,
metadata,
SQL_PARSER,
Expand Down

0 comments on commit 6260a69

Please sign in to comment.