Package io.trino.sql.analyzer
Class TypeAnalyzer
java.lang.Object
io.trino.sql.analyzer.TypeAnalyzer
This class is to facilitate obtaining the type of an expression and its subexpressions
during planning (i.e., when interacting with IR expression). It will eventually get
removed when we split the AST from the IR and we encode the type directly into IR expressions.
-
Constructor Summary
ConstructorsConstructorDescriptionTypeAnalyzer(PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetType(Session session, TypeProvider inputTypes, Expression expression) getTypes(Session session, TypeProvider inputTypes, Expression expression) getTypes(Session session, TypeProvider inputTypes, Iterable<Expression> expressions)
-
Constructor Details
-
TypeAnalyzer
@Inject public TypeAnalyzer(PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory)
-
-
Method Details
-
getTypes
public Map<NodeRef<Expression>,Type> getTypes(Session session, TypeProvider inputTypes, Iterable<Expression> expressions) -
getTypes
public Map<NodeRef<Expression>,Type> getTypes(Session session, TypeProvider inputTypes, Expression expression) -
getType
-